add #480 test
This commit is contained in:
1
test/fixtures/transformation/es6-template-literals/tag-loose/actual.js
vendored
Normal file
1
test/fixtures/transformation/es6-template-literals/tag-loose/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
var foo = bar`wow\na${ 42 }b ${_.foobar()}`;
|
||||
8
test/fixtures/transformation/es6-template-literals/tag-loose/expected.js
vendored
Normal file
8
test/fixtures/transformation/es6-template-literals/tag-loose/expected.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
var _taggedTemplateLiteralLoose = function (strings, raw) {
|
||||
strings.raw = raw;
|
||||
return strings;
|
||||
};
|
||||
|
||||
var foo = bar(_taggedTemplateLiteralLoose(["wow\na", "b ", ""], ["wow\\na", "b ", ""]), 42, _.foobar());
|
||||
3
test/fixtures/transformation/es6-template-literals/tag-loose/options.json
vendored
Normal file
3
test/fixtures/transformation/es6-template-literals/tag-loose/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"loose": ["templateLiterals"]
|
||||
}
|
||||
Reference in New Issue
Block a user