mirror of
https://github.com/prymitive/karma
synced 2026-05-09 03:36:44 +00:00
Add more watchdog tests
This commit is contained in:
@@ -2,7 +2,7 @@ const watchdog = require("./watchdog");
|
||||
const moment = require("moment");
|
||||
|
||||
test("watchdog init()", () => {
|
||||
watchdog.init();
|
||||
watchdog.init(1, 1);
|
||||
});
|
||||
|
||||
test("watchdog getLastUpdate() without pong", () => {
|
||||
@@ -14,3 +14,7 @@ test("watchdog getLastUpdate() with pong", () => {
|
||||
watchdog.pong(ts);
|
||||
expect(watchdog.getLastUpdate()).toBe(ts.utc().unix());
|
||||
});
|
||||
|
||||
test("watchdog isFatal() should be false by default", () => {
|
||||
expect(watchdog.isFatal()).toBe(false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user