All files baseError.spec.ts

100% Statements 14/14
100% Branches 0/0
100% Functions 5/5
100% Lines 9/9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 161x 1x   1x   1x     4x   1x 1x 1x 1x    
import { suite, test } from 'mocha-typescript';
import { expect } from 'chai';
 
import { BaseError } from './baseError';
 
@suite class BaseErrorDefaults {
    public error: BaseError;
 
    before() { this.error = new BaseError('message', 123, 'base_error'); }
 
    @test name() { expect(this.error.name).to.equal('Error'); }
    @test type() { expect(this.error.type).to.equal('base_error'); }
    @test message() { expect(this.error.message).to.equal('message'); }
    @test status() { expect(this.error.status).to.equal(123); }
}