mirror of
https://github.com/chaijs/chai
synced 2024-11-14 15:57:10 +00:00
e08ca08f3b
* add Node.js ESM entry point with named and default exports * ensure that deep importing works
11 lines
No EOL
293 B
JavaScript
11 lines
No EOL
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);
|
|
}) |