From 055f0014d6fe3cca8c1c2d8647675570f999f9fe Mon Sep 17 00:00:00 2001 From: Naitik Shah Date: Thu, 9 Feb 2012 13:38:26 -0800 Subject: [PATCH] travis-ci, mocha for tests --- .travis.yml | 3 +++ package.json | 6 +++--- readme.md | 2 +- test/tmpl-test.js | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2d26206 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: node_js +node_js: + - 0.6 diff --git a/package.json b/package.json index e10f661..9174c44 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,9 @@ "type": "git", "url": "https://github.com/nshah/nodejs-tmpl" }, - "scripts": { "test": "./node_modules/.bin/expresso -c" }, + "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" } } diff --git a/readme.md b/readme.md index b558da5..61cc2f6 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -tmpl +tmpl [![Build Status](https://secure.travis-ci.org/nshah/nodejs-tmpl.png)](http://travis-ci.org/nshah/nodejs-tmpl) ==== Simple string formatting using `{}`. diff --git a/test/tmpl-test.js b/test/tmpl-test.js index 0176bba..cc33ccd 100644 --- a/test/tmpl-test.js +++ b/test/tmpl-test.js @@ -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')