Skip to content

Commit a851249

Browse files
committed
move to mochify
1 parent 0fba4d2 commit a851249

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

gulpfile.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ var gulp = require('gulp'),
33
run = require('gulp-run'),
44
sourcemaps = require('gulp-sourcemaps'),
55
rename = require('gulp-rename'),
6+
mochify = require('mochify'),
67
to5 = require('gulp-6to5');
78

89
gulp.task('6to5', function() {
@@ -20,8 +21,9 @@ gulp.task('6to5', function() {
2021
});
2122

2223
gulp.task('test', ['6to5'], function() {
23-
return gulp.src('test.js')
24-
.pipe(run('node test -b -l phantom -e -q'));
24+
mochify('./test.js', {
25+
reporter: 'tap'
26+
}).bundle();
2527
});
2628

2729
gulp.task('default', ['test'], function() {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
"gulp-run": "^1.6.6",
3232
"gulp-sourcemaps": "^1.3.0",
3333
"gulp-watch": "^4.1.0",
34-
"prova": "^2.1.1"
34+
"mochify": "^2.2.0"
3535
}
3636
}

test.es6

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import test from 'prova';
1+
import assert from 'assert';
22
import { FUNC } from './';
33

44

5-
test('MODULE_NAME', (t) => {
6-
t.plan(1);
7-
8-
t.equal(typeof document, 'object');
5+
it('MODULE_NAME', () => {
6+
assert.equal(typeof document, 'object');
97
});

test.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22

33
var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; };
44

5-
var test = _interopRequire(require("prova"));
5+
var assert = _interopRequire(require("assert"));
66

77
var FUNC = require("./").FUNC;
88

99

1010

11-
test("MODULE_NAME", function (t) {
12-
t.plan(1);
13-
14-
t.equal(typeof document, "object");
11+
it("MODULE_NAME", function () {
12+
assert.equal(typeof document, "object");
1513
});

0 commit comments

Comments
 (0)