Skip to content

Commit

Permalink
Remove test skip
Browse files Browse the repository at this point in the history
  • Loading branch information
blaumeise20 committed Jan 10, 2021
1 parent 941214d commit 97f1049
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 97f1049

Please sign in to comment.