|
@@ -1,12 +1,30 @@
|
|
import chai from "chai";
|
|
import chai from "chai";
|
|
import chaiAsPromised from "chai-as-promised";
|
|
import chaiAsPromised from "chai-as-promised";
|
|
-import sinon from "sinon";
|
|
|
|
import sinonChai from "sinon-chai";
|
|
import sinonChai from "sinon-chai";
|
|
|
|
+import LogBook from "@/LogBook";
|
|
|
|
|
|
chai.should();
|
|
chai.should();
|
|
chai.use(sinonChai);
|
|
chai.use(sinonChai);
|
|
chai.use(chaiAsPromised);
|
|
chai.use(chaiAsPromised);
|
|
|
|
|
|
-afterEach(async function () {
|
|
|
|
- sinon.reset();
|
|
|
|
-});
|
|
|
|
|
|
+if (typeof beforeEach !== "undefined")
|
|
|
|
+ beforeEach(async function () {
|
|
|
|
+ await LogBook.updateOutput("console", "exclude", "set", [
|
|
|
|
+ {
|
|
|
|
+ // @ts-ignore
|
|
|
|
+ type: "error"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ // @ts-ignore
|
|
|
|
+ type: "debug"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ // @ts-ignore
|
|
|
|
+ type: "info"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ // @ts-ignore
|
|
|
|
+ type: "success"
|
|
|
|
+ }
|
|
|
|
+ ]);
|
|
|
|
+ });
|