Skip to content

Some initial assertion tests in auxliaries.test.ts do not throw as expected. #4

@cgcostume

Description

@cgcostume

it('should throw on false expression', () => {
const message = 'always throw';
expect(auxiliaries.assertions()).to.be.true;
expect(() => { auxiliaries.assert(false, message); }).to.throw;
});

The test in line 23 is sucessful for all the four lines:

        expect(() => { auxiliaries.assert(false, message); }).to.throw;
        expect(() => { auxiliaries.assert(true, message); }).to.throw;
        expect(() => { auxiliaries.assert(false, message); }).to.not.throw;
        expect(() => { auxiliaries.assert(true, message); }).to.not.throw;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions