fix(core): update to latest standards

This commit is contained in:
2019-02-13 00:22:18 +01:00
parent 31f21c7dec
commit 383e204ae2
11 changed files with 6401 additions and 105 deletions

@ -1,14 +1,13 @@
import * as beautylog from 'beautylog';
import * as gulp from 'gulp';
import * as gulpFunction from 'gulp-function';
import * as smartq from 'smartq';
import * as gulpFunction from '@pushrocks/gulp-function';
import * as smartpromise from '@pushrocks/smartpromise';
import { expect, tap } from 'tapbundle';
import { expect, tap } from '@pushrocks/tapbundle';
import * as gulpBrowser from '../ts/index';
tap.test('should run through smoothly', async () => {
let done = smartq.defer();
let done = smartpromise.defer();
let stream = gulp
.src('./test/testBrowserifyNormal.js')
.pipe(gulpBrowser.browserify())
@ -21,24 +20,8 @@ tap.test('should run through smoothly', async () => {
await done.promise;
});
tap.test('should throw an error, when a module is not found', async () => {
let done = smartq.defer();
let d = require('domain').create();
let doneCalled = false;
d.on('error', function(error) {
if (!doneCalled) {
done.resolve();
doneCalled = true;
}
});
d.run(function() {
let stream = gulp.src('./test/testBrowserifyError.js').pipe(gulpBrowser.browserify());
});
await done.promise;
});
tap.test('should run through with an empty file', async () => {
let done = smartq.defer();
let done = smartpromise.defer();
let stream = gulp
.src('./test/testBrowserifyEmpty.js')
.pipe(gulpBrowser.browserify())
@ -52,7 +35,7 @@ tap.test('should run through with an empty file', async () => {
});
tap.test('should run through work with transforms', async () => {
let done = smartq.defer();
let done = smartpromise.defer();
let transforms = [
{
transform: 'babelify',