js-waku/src/test_utils/log_file.node.spec.ts

22 lines
495 B
TypeScript
Raw Normal View History

2022-02-04 14:12:00 +11:00
import { expect } from "chai";
2021-03-25 15:49:07 +11:00
2022-02-04 14:12:00 +11:00
import { makeLogFileName } from "./log_file";
2021-03-25 15:49:07 +11:00
2022-02-04 14:12:00 +11:00
describe("This", function () {
describe("Is", function () {
it("A test", function () {
expect(makeLogFileName(this)).to.equal("This_Is_A_test");
2021-03-25 15:49:07 +11:00
});
});
2022-02-04 14:12:00 +11:00
describe("Is also", function () {
2021-03-25 15:49:07 +11:00
let testName: string;
beforeEach(function () {
testName = makeLogFileName(this);
});
2022-02-04 14:12:00 +11:00
it("A test", function () {
expect(testName).to.equal("This_Is_also_A_test");
2021-03-25 15:49:07 +11:00
});
});
});