Skip to content

Commit

Permalink
fix testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Nov 24, 2014
1 parent 88a6788 commit 430b1bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ function wrap(server, middleware) {
request(app.listen())
.get('/index.js')
.expect(/\ndefine\(\'index\', function\(require, exports, module\)\{\nmodule.exports = function\(\) \{\n require\(\'.\/noentry\'\);\n console.log\(\'standalone\'\);\n\};\n\n\}\);\n/)
.expect(/\/\*\! Sea.js Init \*\/\nseajs.use\(\'\/index.js\'\);\n$/)
.expect(/\/\*\! Init \*\/\ng_spm_init\(\'\/index.js\'\);\n$/)
.expect(200, done);
});

Expand Down
2 changes: 1 addition & 1 deletion test/standalonify.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('standalonify', function() {

var origin = 'alert(1);';
var sea = fs.readFileSync(join(__dirname, '../sea.js'), 'utf-8');
var expected = sea + '\n/* Config Base */\nseajs.config({base:\'/\'});\n\nalert(1);\n\n/*! Sea.js Init */\nseajs.use(\'/a\');\n';
var expected = sea + '\n/* Config Base */\nseajs.config({base:\'/\'});\n\nalert(1);\n\n/*! Init */\ng_spm_init(\'/a\');\n';

var stream = standalonifyParser('/a');
stream.on('data', function(newFile) {
Expand Down

0 comments on commit 430b1bf

Please sign in to comment.