From 97f1049af1db2bb4de07195a10a29a89c57d42c6 Mon Sep 17 00:00:00 2001 From: blaumeise20 <62756994+blaumeise20@users.noreply.github.com> Date: Sun, 10 Jan 2021 11:48:40 +0100 Subject: [PATCH] Remove test skip --- index.test.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/index.test.js b/index.test.js index 729055b..5b609d1 100644 --- a/index.test.js +++ b/index.test.js @@ -10,16 +10,15 @@ describe('state tests', () => { const to = new Timeout(() => {}, 0); expect(to.state).toBe(0); }); - - // The following test does not complete successfully. Might be a bug. - test.skip('state is set to 1 when timer has been started', () => { + + test('state is set to 1 when timer has been started', () => { const waitTime = 1000; const callback = jest.fn(); const to = new Timeout(callback, waitTime); to.start(); expect(to.state).toBe(1); }); - + test('state is set to 3 and callback is called after timer is completed', () => { const waitTime = 1000; const callback = jest.fn();