Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 378c7df

Browse files
committed
disallowSpacesInsideTemplateStringPlaceholders: add additional test
Fixes #2144
1 parent f0a278e commit 378c7df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/specs/rules/disallow-spaces-inside-template-string-placeholders.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ describe('rules/disallow-spaces-inside-template-string-placeholders', function()
6161
expect(checker.checkString('`${1}`')).to.have.no.errors();
6262
});
6363

64+
it('should not report errors for the backticks without placeholder', function() {
65+
expect(checker.checkString('`test`')).to.have.no.errors();
66+
});
67+
6468
it('should work with tagged template string', function() {
6569
expect(checker.checkString('tag`${1}`')).to.have.no.errors();
6670
expect(checker.checkString('tag`${1 }`')).to.have.one.validation.error

0 commit comments

Comments
 (0)