From 29534a3c6dad9bc52fe3e9de49385490f5074948 Mon Sep 17 00:00:00 2001 From: PhilKunz Date: Tue, 9 Feb 2016 20:44:10 +0100 Subject: [PATCH] update npmts --- package.json | 2 +- test/test.d.ts | 7 +++++++ test/test.js | 12 +++--------- 3 files changed, 11 insertions(+), 10 deletions(-) create mode 100644 test/test.d.ts diff --git a/package.json b/package.json index 7d5d306..6c5d6a3 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,6 @@ "devDependencies": { "gulp": "3.9.1", "gulp-function": "1.0.2", - "npmts": "^2.1.10" + "npmts": "^2.2.2" } } diff --git a/test/test.d.ts b/test/test.d.ts new file mode 100644 index 0000000..55aebb1 --- /dev/null +++ b/test/test.d.ts @@ -0,0 +1,7 @@ +/// +declare var plugins: { + beautylog: any; + gulp: any; + gulpBrowser: any; + gulpFunction: any; +}; diff --git a/test/test.js b/test/test.js index 83a415f..3397594 100644 --- a/test/test.js +++ b/test/test.js @@ -1,3 +1,5 @@ +#!/usr/bin/env node + /// var plugins = { beautylog: require("beautylog"), @@ -8,8 +10,7 @@ var plugins = { describe("gulpBrowser", function () { describe(".browserify", function () { it("should run through smoothly", function (done) { - this.timeout(50000); - plugins.beautylog.info("Note: This takes longer then usual due to code coverage"); + this.timeout(20000); plugins.gulp.task('gulpBrowserNormal', function (cb) { var stream = plugins.gulp.src('./test/browserifyGulpTest.js') .pipe(plugins.gulpBrowser.browserify()) @@ -21,10 +22,3 @@ describe("gulpBrowser", function () { }); }); }); -plugins.gulp.task('gulpBrowserTestError', function (cb) { - plugins.beautylog.info("Expecting an error:"); - var stream = plugins.gulp.src('./test/browserifyGulpTestError.js') - .pipe(plugins.gulpBrowser.browserify()) - .pipe(plugins.gulp.dest("./test/result/")); - return stream; -});