Skip to content

Commit

Permalink
travis-ci, mocha for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daaku committed Feb 9, 2012
1 parent 1979761 commit 055f001
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: node_js
node_js:
- 0.6
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"type": "git",
"url": "https://github.com/nshah/nodejs-tmpl"
},
"scripts": { "test": "./node_modules/.bin/expresso -c" },

This comment has been minimized.

Copy link
@Ahmad045

Ahmad045 Nov 4, 2021

Y

"scripts": { "test": "NODE_PATH=./lib ./node_modules/.bin/mocha --ui exports" },
"devDependencies": {
"expresso": ">= 0.8.1"
"mocha": ">= 0.12.0"
},
"engines": { "node": ">= 0.4.1" }
"engines": { "node": ">= 0.6.10" }
}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tmpl
tmpl [![Build Status](https://secure.travis-ci.org/nshah/nodejs-tmpl.png)](http:https://travis-ci.org/nshah/nodejs-tmpl)
====

Simple string formatting using `{}`.
Expand Down
2 changes: 1 addition & 1 deletion test/tmpl-test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var tmpl = require('tmpl')
, assert = require('assert')

exports['basic name substitution'] = function(beforeExit) {
exports['basic name substitution'] = function() {
assert.equal(
tmpl('the answer is {answer}', { answer: 42 }),
'the answer is 42')
Expand Down

0 comments on commit 055f001

Please sign in to comment.