Skip to main content
Module

x/chai/test/esm.mjs

BDD / TDD assertion framework for node.js and the browser that can be paired with any testing framework.
Go to Latest
File
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);})