chai/test/esm.mjs

11 lines
293 B
JavaScript
Raw Normal View History

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