Updated the test system
This commit is contained in:
12
test/sleep.test.js
Normal file
12
test/sleep.test.js
Normal file
@ -0,0 +1,12 @@
|
||||
const expect = require('expect');
|
||||
const {sleep} = require('./_30s.js');
|
||||
|
||||
test('sleep is a Function', () => {
|
||||
expect(sleep).toBeInstanceOf(Function);
|
||||
});
|
||||
test('Works as expected', () => {
|
||||
async function sleepyWork() {
|
||||
await sleep(1000);
|
||||
expect(true).toBeTruthy();
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user