Skip to content

Commit

Permalink
Merge pull request #34 from pmadruga/fix_tests
Browse files Browse the repository at this point in the history
tests: testing for tasks number increase
  • Loading branch information
pmadruga authored Nov 25, 2019
2 parents 9ef1b97 + d8de7a3 commit 614e49e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tasks.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const plugin = require('../source/plugin');
describe('Tasks List', () => {
it('should have twelve tasks in total', () => {
const input = Object.keys(tasks).length;
const expected = 12;
const expected = 13;

expect(input).toEqual(expected);
});
Expand All @@ -24,7 +24,7 @@ describe('Correct auto tasks run', () => {
it('should run the correct tasks in plugin auto-clean mode', () => {
// auto-mode is the first plugin function, execute it
plugin[0].func();
expect(tasksExecuted.length).toEqual(8);
expect(tasksExecuted.length).toEqual(9);
autoTasks.forEach(task => {
expect(tasksExecuted.includes(task.name)).toEqual(true);
});
Expand Down

0 comments on commit 614e49e

Please sign in to comment.