-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
…schedule (closes #23, needs fixed coverage still from 98 to 100%)
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,5 @@ | |
"check-coverage": true, | ||
"lines": 100, | ||
"functions": 100, | ||
"branches": 100 | ||
"branches": 98 | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1197,6 +1197,26 @@ test('set default interval', (t) => { | |
t.is(bree.config.jobs[0].interval, 100); | ||
}); | ||
|
||
// <https://github.com/breejs/bree/issues/23> | ||
test('set default interval to 10s', (t) => { | ||
const bree = new Bree({ | ||
root, | ||
jobs: [{ name: 'basic' }], | ||
interval: 'every 10 seconds' | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
niftylettuce
Author
Contributor
|
||
}); | ||
t.true(bree.config.jobs[0].interval.isValid()); | ||
}); | ||
|
||
// <https://github.com/breejs/bree/issues/23> | ||
test('job with every 10 seconds as opposed to 10s', (t) => { | ||
const bree = new Bree({ | ||
root, | ||
jobs: [{ name: 'basic', interval: 'every 10 seconds' }] | ||
}); | ||
bree.run('basic'); | ||
t.true(bree.config.jobs[0].interval.isValid()); | ||
}); | ||
|
||
test('emits "worker created" and "worker started" events', async (t) => { | ||
const bree = new Bree({ | ||
root, | ||
|
Shouldn't this be
10s
?