Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 36ad2be

Browse files
committed
Update tests to match htmlMinifier changes
1 parent 9a43378 commit 36ad2be

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

test/expects/basic.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
var evens = [2,4,6,8]
2-
var odds = evens.map(v => v + 1)
3-
var basic = { template: "<h1 :id=id @click=hi>hello</h1><input type=text>",
1+
var evens = [2,4,6,8];
2+
var odds = evens.map(v => v + 1);
3+
var basic = { template: "<h1 :id=\"id\" @click=\"hi\">hello</h1><input type=\"text\">",
44
data() {
55
return odds
66
}
7-
}
7+
};
88

99
export default basic;

test/expects/compileTemplate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ var compileTemplate = {render: function(){with(this){return _h('div',[_h('p',[_s
44
msg: 'Compile Template'
55
}
66
}
7-
}
7+
};
88

99
export default compileTemplate;

test/expects/expression.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var expression = { template: "<ol class=options v-show=\"foo && bar === 1\"></ol>",
1+
var expression = { template: "<ol class=\"options\" v-show=\"foo && bar === 1\"></ol>",
22
data() {
33
return {
44
foo: false,

test/expects/imports.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
var evens = [2,4,6,8]
2-
var odds = evens.map(v => v + 1)
3-
var Basic = { template: "<h1 :id=id @click=hi>hello</h1><input type=text>",
1+
var evens = [2,4,6,8];
2+
var odds = evens.map(v => v + 1);
3+
var Basic = { template: "<h1 :id=\"id\" @click=\"hi\">hello</h1><input type=\"text\">",
44
data() {
55
return odds
66
}
7-
}
7+
};
88

99
var imports = { template: "<main><basic></basic></main>",
1010
components: {
1111
Basic
1212
}
13-
}
13+
};
1414

1515
export default imports;

test/expects/style.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
var evens = [2,4,6,8]
2-
var odds = evens.map(v => v + 1)
3-
var style = { template: "<h1 :id=id @click=hi>hello</h1><input type=text>",
1+
var evens = [2,4,6,8];
2+
var odds = evens.map(v => v + 1);
3+
var style = { template: "<h1 :id=\"id\" @click=\"hi\">hello</h1><input type=\"text\">",
44
data() {
55
return odds
66
}
7-
}
7+
};
88

99
export default style;

0 commit comments

Comments
 (0)