Skip to content

Commit 6028f2d

Browse files
committed
fix test case
1 parent 61fb4ff commit 6028f2d

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

test/loaderTest.js

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -69,27 +69,16 @@ describe("loader", function() {
6969
loader.call({
7070
minimize: true,
7171
options: {
72-
htmlLoader: {
73-
ignoreCustomFragments: [/\{\{.*?}}/]
72+
vue: {
73+
html: {
74+
ignoreCustomFragments: [/\{\{.*?}}/]
75+
}
7476
}
7577
}
7678
}, '<h3>{{ count <= 1 ? "foo" : "bar" }}</h3>').should.be.eql(
7779
'module.exports = "<h3>{{ count <= 1 ? \\"foo\\" : \\"bar\\" }}</h3>";'
7880
);
7981
});
80-
it("should allow the webpack config property name to be configured", function() {
81-
loader.call({
82-
minimize: true,
83-
options: {
84-
htmlLoaderSuperSpecialConfig: {
85-
ignoreCustomFragments: [/\{\{.*?}}/]
86-
}
87-
},
88-
query: '?config=htmlLoaderSuperSpecialConfig'
89-
}, '<h3>{{ count <= 1 ? "foo" : "bar" }}</h3>').should.be.eql(
90-
'module.exports = "<h3>{{ count <= 1 ? \\"foo\\" : \\"bar\\" }}</h3>";'
91-
);
92-
});
9382
it('should minimize vue template', function () {
9483
loader.call({
9584
minimize: true

0 commit comments

Comments
 (0)