chai/test/esm.mjs
Gil Tayar e08ca08f3b
feat: add Node.js ESM entry point with named and default exports (#1340)
* add Node.js ESM entry point with named and default exports

* ensure that deep importing works
2020-06-09 11:17:41 +01:00

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);
})