update npmts

This commit is contained in:
Philipp Kunz 2016-02-09 20:44:10 +01:00
parent e5cbefd195
commit 29534a3c6d
3 changed files with 11 additions and 10 deletions

View File

@ -33,6 +33,6 @@
"devDependencies": {
"gulp": "3.9.1",
"gulp-function": "1.0.2",
"npmts": "^2.1.10"
"npmts": "^2.2.2"
}
}

7
test/test.d.ts vendored Normal file
View File

@ -0,0 +1,7 @@
/// <reference path="ts/typings/main.d.ts" />
declare var plugins: {
beautylog: any;
gulp: any;
gulpBrowser: any;
gulpFunction: any;
};

View File

@ -1,3 +1,5 @@
#!/usr/bin/env node
/// <reference path="./typings/main.d.ts" />
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;
});