We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eaa7e0 commit cae39ddCopy full SHA for cae39dd
test/loaderTest.js
@@ -122,8 +122,8 @@ describe("loader", function() {
122
it("should enable interpolations when using interpolate=require flag and only require function to be translate", function() {
123
loader.call({
124
query: "?interpolate=require"
125
- }, '<a href="${list.href}"><img src="${require(\'./test.jpg\')}" />').should.be.eql(
126
- 'module.exports = "<a href="${list.href}"><img src=\\"" + require(\'./test.jpg\') + "\\">";'
+ }, '<a href="${list.href}"><img src="${require("./test.jpg")}" /></a>').should.be.eql(
+ 'module.exports = "<a href="${list.href}"><img src=\\"" + require("./test.jpg") + "\\"></a>";'
127
);
128
});
129
0 commit comments