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`
Same idea for describe and it.
The text was updated successfully, but these errors were encountered:
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
.The text was updated successfully, but these errors were encountered: