Skip to content

Commit f27f242

Browse files
committed
test(web): add test for titleSuffix template resolution
1 parent ba690e0 commit f27f242

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/utils/configuration/__tests__/templates.test.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,11 @@ describe('populate', () => {
2323
const result = populate('{missing}', {});
2424
assert.strictEqual(result, '{missing}');
2525
});
26+
27+
it('should resolve the web generator titleSuffix template', () => {
28+
const result = populate('Node.js {version} Documentation', {
29+
version: '22.0.0',
30+
});
31+
assert.strictEqual(result, 'Node.js 22.0.0 Documentation');
32+
});
2633
});

0 commit comments

Comments
 (0)