Upload Kmake

This commit is contained in:
Gorochu
2026-05-26 23:36:42 -07:00
parent ba051b2f74
commit 555ec72358
41615 changed files with 13344630 additions and 1 deletions

View File

@ -0,0 +1,76 @@
'use strict';
const { describe, it } = require('node:test');
describe('planning with wait', () => {
it('planning with wait and passing', async (t) => {
t.plan(1, { wait: 5000 });
const asyncActivity = () => {
setTimeout(() => {
t.assert.ok(true);
}, 250);
};
asyncActivity();
});
it('planning with wait and failing', async (t) => {
t.plan(1, { wait: 5000 });
const asyncActivity = () => {
setTimeout(() => {
t.assert.ok(false);
}, 250);
};
asyncActivity();
});
it('planning wait time expires before plan is met', async (t) => {
t.plan(2, { wait: 500 });
const asyncActivity = () => {
setTimeout(() => {
t.assert.ok(true);
}, 50_000_000);
};
asyncActivity();
});
it(`planning with wait "options.wait : true" and passing`, async (t) => {
t.plan(1, { wait: true });
const asyncActivity = () => {
setTimeout(() => {
t.assert.ok(true);
}, 250);
};
asyncActivity();
});
it(`planning with wait "options.wait : true" and failing`, async (t) => {
t.plan(1, { wait: true });
const asyncActivity = () => {
setTimeout(() => {
t.assert.ok(false);
}, 250);
};
asyncActivity();
});
it(`planning with wait "options.wait : false" should not wait`, async (t) => {
t.plan(1, { wait: false });
const asyncActivity = () => {
setTimeout(() => {
t.assert.ok(true);
}, 500_000);
};
asyncActivity();
});
});