Skip to content

Commit 15d3656

Browse files
committed
refactor(gen:test): rm dead code, promisify fs in mocha.conf, del old test file
1 parent faf61df commit 15d3656

File tree

6 files changed

+4
-782
lines changed

6 files changed

+4
-782
lines changed

Diff for: mocha.conf.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
'use strict';
22

33
global.DEBUG = !!process.env.DEBUG;
4+
5+
var fs = require('fs');
6+
var Promise = require('bluebird');
7+
Promise.promisifyAll(fs);

Diff for: src/test/endpoint.test.js

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import path from 'path';
33
import fs from 'fs';
44
import _ from 'lodash';
55
import Promise from 'bluebird';
6-
Promise.promisifyAll(fs);
76
import helpers from 'yeoman-test';
87
import assert from 'yeoman-assert';
98
import minimatch from 'minimatch';

Diff for: src/test/main.test.js

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import path from 'path';
33
import fs from 'fs';
44
import _ from 'lodash';
55
import Promise from 'bluebird';
6-
Promise.promisifyAll(fs);
76
import helpers from 'yeoman-test';
87
import assert from 'yeoman-assert';
98
import * as getExpectedFiles from './get-expected-files';

0 commit comments

Comments
 (0)