mirror of
https://github.com/chaijs/chai
synced 2024-11-15 00:07:11 +00:00
11 lines
293 B
JavaScript
11 lines
293 B
JavaScript
|
import {expect, should} from 'chai';
|
||
|
import chai from 'chai';
|
||
|
import 'chai/register-assert.js';
|
||
|
should()
|
||
|
|
||
|
it('expect and should are ESM named exports and chai is a default export', () => {
|
||
|
expect(4).to.equal(4);
|
||
|
"s".should.equal("s");
|
||
|
chai.expect(4).to.equal(4);
|
||
|
assert.equal(4, 4);
|
||
|
})
|