Skip to content
This repository has been archived by the owner on Sep 5, 2022. It is now read-only.

Commit

Permalink
Fix the 'should throw a PluginError' test
Browse files Browse the repository at this point in the history
If the Vinyl.contents is a stream, it must be ReadableStream. See gulpjs/vinyl#140
  • Loading branch information
idontsov committed Sep 14, 2020
1 parent a30ac19 commit 11be88e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -37,7 +37,6 @@
"coveralls": "^2.11.2",
"eslint": "^1.10.3",
"eslint-config-xo-space": "^0.7.0",
"event-stream": "^3.3.2",
"istanbul": "^0.4.1",
"mocha": "^2.3.4",
"mocha-lcov-reporter": "^1.0.0"
Expand Down
4 changes: 2 additions & 2 deletions test/test.js
Expand Up @@ -2,10 +2,10 @@

// NodeJS library
var assert = require('assert');
var Readable = require('stream').Readable

// NPM library
var Vinyl = require('vinyl');
var es = require('event-stream');

// Local library
var base64 = require('../src/index');
Expand Down Expand Up @@ -535,7 +535,7 @@ describe('gulp-css-base64', function () {
it('should throw a PluginError', function (done) {
// create the fake file
var fakeFile = new Vinyl({
contents: es.readArray(['stream', 'with', 'those', 'contents'])
contents: new Readable()
});

// Create a prefixer plugin stream
Expand Down

0 comments on commit 11be88e

Please sign in to comment.