Skip to content

Commit 494361d

Browse files
committed
test: add cases covering the early exit check
1 parent e36341f commit 494361d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/prefer-string-raw.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ test.snapshot({
4949

5050
test.snapshot({
5151
valid: [
52+
'a = foo`ab`',
53+
'a = foo().bar`ab`',
54+
'a = foo.bar()`ab`',
55+
'a = String["raw"]`ab`',
56+
'a = foo.raw`ab`',
57+
'a = String.foo`ab`',
58+
'a = String.raw`a\\b`',
5259
'a = String.raw`a\\b`',
5360
'a = String.raw`a\\b${foo}cd`',
5461
'a = String.raw`ab${foo}c\\nd`',

0 commit comments

Comments
 (0)