diff --git a/test/template-linter-test.ts b/test/template-linter-test.ts index 9f173703..e0b25cfd 100644 --- a/test/template-linter-test.ts +++ b/test/template-linter-test.ts @@ -31,7 +31,7 @@ describe('template-linter', function () { } as TextDocument; console.log(semver.parse('~4.3.1')); // should be counted as 4.3.1 - expect(linter['sourcesForDocument'](doc, semver.parse('~4.3.1'))).toEqual(['']); + expect(linter['sourcesForDocument'](doc, semver.parse('~4.3.1'))).toEqual([' 1']); }); it('process gjs for template-lint v4 with ^', function () { const doc: TextDocument = { @@ -42,7 +42,7 @@ describe('template-linter', function () { } as TextDocument; console.log(semver.parse('^4.3.1')); // should be counted as 4.3.1 - expect(linter['sourcesForDocument'](doc, semver.parse('^4.3.1'))).toEqual(['']); + expect(linter['sourcesForDocument'](doc, semver.parse('^4.3.1'))).toEqual([' 1']); }); it('process gjs for template-lint v4 with strict dependency', function () { const doc: TextDocument = {