Test cleanup and fixes [s-t]

This commit is contained in:
Angelos Chalaris
2018-06-18 18:37:35 +03:00
parent 9c22d92c34
commit 46ad6c08b9
53 changed files with 286 additions and 409 deletions

View File

@@ -1,13 +1,12 @@
const expect = require('expect');
const sleep = require('./sleep.js');
test('sleep is a Function', () => {
test('sleep is a Function', () => {
expect(sleep).toBeInstanceOf(Function);
});
test('Works as expected', () => {
async function sleepyWork() {
await sleep(1000);
expect(true).toBeTruthy();
}
});