Fix date test.

This commit is contained in:
Michael Teeuw
2020-04-01 10:57:50 +02:00
parent 66642a19c5
commit 2464d01891
4 changed files with 4 additions and 101 deletions

View File

@@ -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();
});
});
});
});