This commit is contained in:
2016-02-01 03:33:33 +01:00
parent c1f1500ffc
commit 27a97c1bde
18 changed files with 97 additions and 2309 deletions

View File

@ -1,2 +0,0 @@
# Test.md
This is a test file for the test.js gulp pipeline

17
test/test.js Normal file
View File

@ -0,0 +1,17 @@
/// <reference path="typings/main.d.ts" />
var gulp = require("gulp");
var gulpFunction = require("../index.js");
var beautylog = require("beautylog");
var myFunction = function () {
beautylog.log("Mocha Test successfull!");
};
describe("gulpFunction", function () {
it("should run through smoothly", function () {
gulp.task('default', function () {
gulp.src('./test/test.md')
.pipe(gulpFunction(myFunction, 'forEach'))
.pipe(gulp.dest("./test/result/"));
});
gulp.start.apply(gulp, ['default']);
});
});