2022-02-04 14:12:00 +11:00
|
|
|
import { expect } from "chai";
|
2021-03-25 15:49:07 +11:00
|
|
|
|
2024-02-15 08:50:03 +02:00
|
|
|
import { beforeEachCustom, makeLogFileName } from "../src/index.js";
|
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;
|
2024-02-15 08:50:03 +02:00
|
|
|
beforeEachCustom(this, async () => {
|
|
|
|
|
testName = makeLogFileName(this.ctx);
|
2021-03-25 15:49:07 +11:00
|
|
|
});
|
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
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|