run npm install to generate a package lock

This commit is contained in:
sashinexists
2024-12-07 13:18:31 +11:00
parent e7d08a91b5
commit 23437d228e
2501 changed files with 290663 additions and 0 deletions

52
node_modules/promise-make-counter/test/index.js generated vendored Normal file
View File

@@ -0,0 +1,52 @@
/* IMPORT */
import {describe} from 'fava';
import makeCounterPromise from '../dist/index.js';
/* MAIN */
describe ( 'Promise Make Counter', it => {
it ( 'resolves without increments', async t => {
const {isPending} = makeCounterPromise ();
t.true ( isPending () );
await t.wait ( 0 );
t.false ( isPending () );
});
it ( 'resolves after equal increments and decrements', async t => {
const {isPending, increment, decrement} = makeCounterPromise ();
t.true ( isPending () );
increment ();
increment ();
increment ();
await t.wait ( 0 );
t.true ( isPending () );
decrement ();
decrement ();
await t.wait ( 0 );
t.true ( isPending () );
decrement ();
await t.wait ( 0 );
t.false ( isPending () );
});
});