Skip to content

Commit 27634ee

Browse files
committed
Use grunt-mocha-test instead of grunt-tape due to node 0.8 compatibilites
Ends up coming from the writable stream here: tapjs/tap-parser#9 (comment)
1 parent f3dd12e commit 27634ee

4 files changed

Lines changed: 19 additions & 14 deletions

File tree

Gruntfile.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ module.exports = function(grunt) {
2424
qunit: {
2525
index: ['test/index.html']
2626
},
27-
tape: {
28-
files: ['test/tape-*.js']
27+
mochaTest: {
28+
test: {
29+
src: ['test/mocha-*.js']
30+
}
2931
},
3032
watch: {
3133
files: ['<config:lint.files>', 'test/**'],
@@ -35,8 +37,8 @@ module.exports = function(grunt) {
3537

3638
grunt.loadNpmTasks('grunt-contrib-jshint');
3739
grunt.loadNpmTasks('grunt-contrib-qunit');
38-
grunt.loadNpmTasks('grunt-tape');
40+
grunt.loadNpmTasks('grunt-mocha-test');
3941

4042
// Default task.
41-
grunt.registerTask('default', ['jshint', 'qunit', 'tape']);
43+
grunt.registerTask('default', ['jshint', 'qunit', 'mochaTest']);
4244
};

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
"grunt": "~0.4.1",
1616
"grunt-contrib-qunit": "~0.2.2",
1717
"grunt-contrib-jshint": "~0.6.4",
18-
"grunt-tape": "0.0.2",
18+
"grunt-mocha-test": "~0.8.2",
1919
"grunt-contrib-watch": "~0.5.3",
2020
"jslitmus": "~0.1.0",
21-
"tape": "~2.3.2"
21+
"mocha": "~1.17.1"
2222
},
2323
"peerDependencies": {
2424
"grunt-cli": "*",

test/mocha-require.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*global describe, it*/
2+
var assert = require('assert');
3+
4+
var Backbone = require('backbone');
5+
require('../backbone-nested');
6+
7+
describe("CommonJS support", function() {
8+
it('should attach to Backbone when require backbone-nested', function() {
9+
assert.ok(Backbone.NestedModel);
10+
});
11+
});

test/tape-require.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)