theintern / intern

A next-generation code testing stack for JavaScript.
https://theintern.io/
Other
4.36k stars 309 forks source link

Internalize the assertion API #1138

Closed jason0x43 closed 4 years ago

jason0x43 commented 4 years ago

Export chai's assert and expect on the default intern export, allowing for:

import { assert } from 'intern';
assert.isOk(foo);

// or

import intern from 'intern';
intern.assert.isOk(foo);

// or, using the global, just

intern.assert.isOk(foo);

See #1041 for discussion

jason0x43 commented 4 years ago

Closing as duplicate of #1120