From 4939806ae705953cfc1ca8cf54f20d98e9be9d03 Mon Sep 17 00:00:00 2001 From: Dean Anderson Date: Thu, 27 Sep 2018 16:51:01 -0400 Subject: customTag will supply ISO date format if user configured format empty Added separate templates for author name {author} and email {email} Added method to make multiple template substitutions in a string customTag will now replace {author}, {email}, {date} and {year} templates --- src/test/CppTests/Config.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/CppTests/Config.test.ts') diff --git a/src/test/CppTests/Config.test.ts b/src/test/CppTests/Config.test.ts index 69837ce..a4c96e6 100644 --- a/src/test/CppTests/Config.test.ts +++ b/src/test/CppTests/Config.test.ts @@ -113,7 +113,7 @@ suite("C++ - Configuration Tests", () => { testSetup.firstLine = 0; testSetup.cfg.File.fileOrder = ["brief", "author", "date", "file"]; const result = testSetup.SetLine("").GetResult(); - assert.equal("/**\n * @brief \n * @author your name\n" + + assert.equal("/**\n * @brief \n * @author your name (you@domain.com)\n" + " * @date " + moment().format("YYYY-MM-DD") + "\n * @file MockDocument.h\n */", result); }); -- cgit v1.2.3