chai-gulp-helpers
This is a chai plugin for testing gulp plugins.
Installation
You can install chai-gulp-helpers via npm:
$ npm install --save-dev chai-gulp-helpers
Usage
Enable the plugin:
var chai = ;var chaiGulpHelpers = ;chai;
This gives you two kinds of syntax:
// Verify that two arrays of Vinyl files are equal (have the same files with same content):tobe;// Verify that two streams return the equal list of Vinyl files (returns a promise)toproduce;
Examples
;
This test will pass if the files in fixtures
folder processed by your plugin match those in the expected
folder.