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