Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cgcostume opened this issue Feb 11, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@cgcostume
Copy link
Member

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;
@cgcostume cgcostume added the bug Something isn't working label Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant