|
1 | | -var test = require('prova'), |
| 1 | +var test = require('tap').test, |
2 | 2 | path = require('path'), |
3 | 3 | concat = require('concat-stream'), |
4 | 4 | gulp = require('gulp'), |
5 | | - proxyquire = require('proxyquire'), |
6 | 5 | documentation = require('../'); |
7 | 6 |
|
8 | 7 | test('gulp-documentation', function(t) { |
@@ -41,29 +40,11 @@ test('gulp-documentation html', function(t) { |
41 | 40 | gulp.src(path.join(__dirname, '/fixture.js')) |
42 | 41 | .pipe(documentation({ format: 'html' })) |
43 | 42 | .pipe(concat(function(d) { |
44 | | - t.equal(d.length, 7); |
| 43 | + t.equal(d.length, 34); |
45 | 44 | t.end(); |
46 | 45 | })); |
47 | 46 | }); |
48 | 47 |
|
49 | | -test('gulp-documentation github links', function(t) { |
50 | | - var through2Stub = { |
51 | | - obj : function (indexes, callback) { |
52 | | - callback.call(); |
53 | | - } |
54 | | - }, |
55 | | - documentationStub = function(indexes, options) { |
56 | | - t.equal(options.github, true); |
57 | | - t.end(); |
58 | | - }, |
59 | | - documentationjs = proxyquire('../', { |
60 | | - 'through2': through2Stub, |
61 | | - 'documentation': documentationStub |
62 | | - }); |
63 | | - |
64 | | - documentationjs({ format: 'html', github: true }); |
65 | | -}); |
66 | | - |
67 | 48 | test('gulp-documentation exit callback', function(t) { |
68 | 49 | t.plan(1); |
69 | 50 | gulp.src(path.join(__dirname, '/fixture.js')) |
|
0 commit comments