summaryrefslogtreecommitdiffstats
path: root/src/test/CppTests/FileDescription.test.ts
diff options
context:
space:
mode:
authorHO-COOH <42881734+HO-COOH@users.noreply.github.com>2021-05-15 00:14:36 +0800
committerGitHub <noreply@github.com>2021-05-14 18:14:36 +0200
commitaf70cf95d9d010f27da1c1c8987c807ee3255a10 (patch)
tree9d6de559ea072c684f690d32816f7fe3ae1a88d3 /src/test/CppTests/FileDescription.test.ts
parentbe07386c572fe8258a3b4c101b85dd900867bb13 (diff)
downloaddoxdocgen-af70cf95d9d010f27da1c1c8987c807ee3255a10.tar.gz
Refactor, add {file} template (#221)
* Refactor, add {file} template * Add test for {file} expansion
Diffstat (limited to 'src/test/CppTests/FileDescription.test.ts')
-rw-r--r--src/test/CppTests/FileDescription.test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/CppTests/FileDescription.test.ts b/src/test/CppTests/FileDescription.test.ts
index 2e0bb7e..ec0034d 100644
--- a/src/test/CppTests/FileDescription.test.ts
+++ b/src/test/CppTests/FileDescription.test.ts
@@ -78,9 +78,9 @@ suite("File Description Tests", () => {
test("custom block", () => {
testSetup.cfg.File.fileOrder = ["custom"];
testSetup.cfg.File.customTag = ["First Line", "{year} Year Line", "{date} Date Line",
- "{author} Author Line", "{email} Email Line"];
+ "{author} Author Line", "{email} Email Line", "{file} File Line"];
const result = testSetup.SetLine("").GetResult();
assert.strictEqual(result, "/**\n * First Line\n * " + year + " Year Line\n * " + date + " Date Line\n" +
- " * your name Author Line\n * you@domain.com Email Line\n */");
+ " * your name Author Line\n * you@domain.com Email Line\n" + " * MockDocument.h File Line\n */");
});
});