You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// tests.mjsimportassertfrom'node:assert';importtestfrom'node:test';test('that 1 is equal 1',()=>{assert.strictEqual(1,1);});test('that throws as 1 is not equal 2',()=>{// throws an exception because 1 != 2assert.strictEqual(1,2);});// run with `node tests.mjs`
To (Poku):
// tests.mjsimport{test,assert}from'poku';test('that 1 is equal 1',()=>{assert.strictEqual(1,1);});test('that throws as 1 is not equal 2',()=>{// throws an exception because 1 != 2assert.strictEqual(1,2);});// run with `npx poku tests.mjs`
In the same approach for
assert
, allow users to use all the essential native approaches in Poku:From (Node.js homepage):
To (Poku):
describe
andit
.test
(feat(test): support for Node.js familiar API usage #352)describe
(feat(describe): support for Node.js familiar API usage #353)it
(feat(it): support for Node.js familiar API usage #354)The text was updated successfully, but these errors were encountered: