gulp-function/ts/test.ts

21 lines
578 B
TypeScript
Raw Normal View History

2016-02-01 02:33:33 +00:00
/// <reference path="typings/main.d.ts" />
2015-10-26 15:18:37 +00:00
var gulp = require("gulp");
2016-02-01 02:33:33 +00:00
var gulpFunction = require("../index.js");
var beautylog = require("beautylog");
2015-10-26 15:18:37 +00:00
var myFunction = function () {
2016-02-01 02:33:33 +00:00
beautylog.log("Mocha Test successfull!");
};
2015-10-26 15:18:37 +00:00
2016-02-01 02:33:33 +00:00
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']);
});
2015-10-26 15:18:37 +00:00
});
2016-02-01 02:33:33 +00:00