diff --git a/test/fixtures/transformation/es6-template-literals/tag-loose/actual.js b/test/fixtures/transformation/es6-template-literals/tag-loose/actual.js new file mode 100644 index 0000000000..7fe1864736 --- /dev/null +++ b/test/fixtures/transformation/es6-template-literals/tag-loose/actual.js @@ -0,0 +1 @@ +var foo = bar`wow\na${ 42 }b ${_.foobar()}`; diff --git a/test/fixtures/transformation/es6-template-literals/tag-loose/expected.js b/test/fixtures/transformation/es6-template-literals/tag-loose/expected.js new file mode 100644 index 0000000000..7be77f1baa --- /dev/null +++ b/test/fixtures/transformation/es6-template-literals/tag-loose/expected.js @@ -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()); diff --git a/test/fixtures/transformation/es6-template-literals/tag-loose/options.json b/test/fixtures/transformation/es6-template-literals/tag-loose/options.json new file mode 100644 index 0000000000..fe669cb1d4 --- /dev/null +++ b/test/fixtures/transformation/es6-template-literals/tag-loose/options.json @@ -0,0 +1,3 @@ +{ + "loose": ["templateLiterals"] +}