Skip to content

Commit

Permalink
fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian committed Mar 2, 2018
1 parent 59cbff2 commit 5163009
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/assets/ganma.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function (a, b, c, d) {
(function (b, c, d) {
const a = 'a';
console.log(a);
}());
2 changes: 1 addition & 1 deletion test/assets/hehe.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function (a, b, c, d) {
(function () {
const a = 'a';
console.log(a);
}());
8 changes: 4 additions & 4 deletions test/builder.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ describe('builder', function () {
{ target: '/assets/min.js',
'type': 'js',
assets: [ '/assets/hehe.js', '/assets/ganma.js' ],
min: '/assets/min.d01c49af.min.js',
debug: '/assets/min.d01c49af.debug.js'
min: '/assets/min.c259e248.min.js',
debug: '/assets/min.c259e248.debug.js'
},
{ target: '/assets/min.css',
'type': 'css',
Expand All @@ -144,7 +144,7 @@ describe('builder', function () {
var minJS = path.join(__dirname, map['/assets/min.js']);
var minCSS = path.join(__dirname, map['/assets/min.css']);

fs.readFileSync(minJS, 'utf-8').should.equal('!function(o,n,c,l){const o="a";console.log(o)}();\n!function(o,n,c,l){const o="a";console.log(o)}();\n');
fs.readFileSync(minJS, 'utf-8').should.equal('console.log("a");\nconsole.log("a");\n');
fs.readFileSync(minCSS, 'utf-8').should.equal('.foo{float:left}\n.bar{float:left}\n.class{width:2}\n');
});

Expand All @@ -158,7 +158,7 @@ describe('builder', function () {
{ target: '/assets/no-debug.js',
'type': 'js',
assets: [ '/assets/hehe.js', '/assets/ganma.js' ],
min: '/assets/no-debug.d01c49af.min.js',
min: '/assets/no-debug.c259e248.min.js',
//debug: '/assets/min.7d0550f0.debug.js'
},
{ target: '/assets/no-debug.css',
Expand Down

0 comments on commit 5163009

Please sign in to comment.