mirror of
https://github.com/waku-org/js-waku.git
synced 2025-02-20 16:18:21 +00:00
* use graceful timeout mechanism * set max timeout for all hooks * small fix * small fix * use MOCHA_HOOK_MAX_TIMEOUT as default timeoutDuration * force retry even when the hook fails * use custom hooks * fix global timeout problem * fix unwanted change * fix enr issue * force retry on before error as well
22 lines
534 B
TypeScript
22 lines
534 B
TypeScript
import { expect } from "chai";
|
|
|
|
import { beforeEachCustom, makeLogFileName } from "../src/index.js";
|
|
|
|
describe("This", function () {
|
|
describe("Is", function () {
|
|
it("A test", function () {
|
|
expect(makeLogFileName(this)).to.equal("This_Is_A_test");
|
|
});
|
|
});
|
|
|
|
describe("Is also", function () {
|
|
let testName: string;
|
|
beforeEachCustom(this, async () => {
|
|
testName = makeLogFileName(this.ctx);
|
|
});
|
|
it("A test", function () {
|
|
expect(testName).to.equal("This_Is_also_A_test");
|
|
});
|
|
});
|
|
});
|