Skip to content

Commit d64029f

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

File tree

6 files changed

+4
-782
lines changed

6 files changed

+4
-782
lines changed

mocha.conf.js

Lines changed: 4 additions & 0 deletions
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);

src/test/endpoint.test.js

Lines changed: 0 additions & 1 deletion
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';

src/test/main.test.js

Lines changed: 0 additions & 1 deletion
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)