mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
Fix date test.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
const helpers = require("../global-setup");
|
||||
const expect = require("chai").expect;
|
||||
const MockDate = require("./mocks/date.js");
|
||||
|
||||
const describe = global.describe;
|
||||
const it = global.it;
|
||||
@@ -96,7 +95,6 @@ describe("Compliments module", function() {
|
||||
before(function() {
|
||||
// Set config sample for use in test
|
||||
process.env.MM_CONFIG_FILE = "tests/configs/modules/compliments/compliments_date.js";
|
||||
MockDate.set("2000-01-01");
|
||||
});
|
||||
|
||||
it("Show happy new year compliment on new years day", function() {
|
||||
@@ -104,10 +102,6 @@ describe("Compliments module", function() {
|
||||
expect(text).to.be.oneOf(["Happy new year!"]);
|
||||
});
|
||||
});
|
||||
|
||||
after(function() {
|
||||
MockDate.reset();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user