Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

busterjs-ify

  • Loading branch information...
commit 29ee541e0fd11ffdf1ab49f4798f131d1a1d2482 1 parent 8b65bc8
@sdepold sdepold authored
Showing with 34 additions and 2 deletions.
  1. +8 −0 buster.js
  2. +3 −2 package.json
  3. +23 −0 spec/app.spec.js
View
8 buster.js
@@ -0,0 +1,8 @@
+var config = module.exports
+
+config["node tests"] = {
+ tests: [
+ "spec/*.spec.js"
+ ],
+ environment: 'node'
+}
View
5 package.json
@@ -9,7 +9,7 @@
"url": "git://github.com/dawanda/node-imageable.git"
},
"scripts": {
- "test": "./node_modules/.bin/vows test/*.test.js"
+ "test": "./node_modules/.bin/buster-test"
},
"engines": {
"node": ">=v0.4.11"
@@ -21,6 +21,7 @@
"airbrake": "=0.2.4"
},
"devDependencies": {
- "vows": ">=0.5.8"
+ "buster": "~0.6.2",
+ "express-test-bot": "~0.1.2"
}
}
View
23 spec/app.spec.js
@@ -0,0 +1,23 @@
+var buster = require('buster')
+ , ExpressTestBot = require('express-test-bot')
+
+buster.spec.expose()
+
+describe('ImageableServer', function() {
+ before(function() {
+ this.server = new ExpressTestBot()
+ })
+
+ describe('GET /', function() {
+ it('returns not so friendly home page', function(done) {
+ this.server.get('/', function(err, stdout, stderr) {
+ expect(stdout).toMatch('This is not the page you are looking for.')
+ done()
+ })
+ })
+
+ it("fails", function() {
+ expect(1).toEqual(2)
+ })
+ })
+})
Please sign in to comment.
Something went wrong with that request. Please try again.