From 7bd452faaf4b11dbd94a0413e3bfbab4f187c451 Mon Sep 17 00:00:00 2001 From: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Date: Sun, 29 Sep 2024 20:58:11 +0200 Subject: [PATCH] Update tldr-lint.spec.js --- specs/tldr-lint.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/tldr-lint.spec.js b/specs/tldr-lint.spec.js index 2570b63..3973105 100644 --- a/specs/tldr-lint.spec.js +++ b/specs/tldr-lint.spec.js @@ -185,7 +185,7 @@ describe('Common TLDR formatting errors', function() { expect(errors.length).toBe(1); }); - const invalidCharacters = linter.INVALID_WINDOWS_CHARACTERS; + const invalidCharacters = ['<', '>', ':', '"', '/', '\\', '|', '?', '*']; invalidCharacters.forEach((char) => { it('TLDR111\t' + linter.ERRORS.TLDR111 + '\t - ${char}', function() { const basenameSpy = jest.spyOn(path, 'basename').mockImplementation((filePath) => {