Skip to content
This repository has been archived by the owner on Jan 19, 2020. It is now read-only.

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
soulteary committed Dec 14, 2015
1 parent bc04052 commit 2f3af34
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ bower_components/
test/bower_components/
.idea/
.svn/
*.iml
/*.iml
node_modules/

Thumbs.db
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
language: node_js
node_js:
- "5.00"
- "0.10"
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "gulp-lazy-tpl",
"description": "模板构建工具。",
"author": "soulteary",
"version": "0.0.7",
"version": "0.0.8",
"scripts": {
"test": "istanbul cover node_modules/mocha/bin/_mocha -- --recursive test -R spec -r should && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
},
Expand All @@ -11,15 +11,15 @@
},
"dependencies": {
"dot": "1.0.3",
"gulp-util": "3.0.6",
"lodash": "3.10.0",
"through2": "0.6.5"
"gulp-util": "^3.0.6",
"lodash": "^3.10.0",
"through2": "^0.6.5"
},
"devDependencies": {
"coveralls": "2.11.2",
"istanbul": "0.3.16",
"mocha": "2.2.5",
"should": "7.0.1"
"coveralls": "^2.11.2",
"istanbul": "^0.3.16",
"mocha": "^2.2.5",
"should": "^7.0.1"
},
"license": "MIT"
}
2 changes: 1 addition & 1 deletion test/lodash.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('lodash Template', function() {

stream.on('data', function(file) {
var finalContent = file.contents.toString().trim().replace(/\n/g, '');
var expectContent = '/* global define */define(function () { \'use strict\';return function (obj) {obj || (obj = {});var __t, __p = \'\', __e = _.escape;with (obj) {__p += \'hello \' +((__t = ( user )) == null ? \'\' : __t) +\'!\';}return __p}});';
var expectContent = '/* global define */define(function () { \'use strict\';return function (obj) {obj || (obj = {});var __t, __p = \'\';with (obj) {__p += \'hello \' +((__t = ( user )) == null ? \'\' : __t) +\'!\';}return __p}});';
finalContent.should.equal(expectContent);
});

Expand Down

0 comments on commit 2f3af34

Please sign in to comment.