From 11be88e8871b428d578439d0b5151d852ee23fe1 Mon Sep 17 00:00:00 2001 From: Igor Dontsov Date: Tue, 15 Sep 2020 02:44:41 +0300 Subject: [PATCH] Fix the 'should throw a PluginError' test If the Vinyl.contents is a stream, it must be ReadableStream. See https://github.com/gulpjs/vinyl/issues/140 --- package.json | 1 - test/test.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index de876ef..b7c1d76 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/test/test.js b/test/test.js index 3333ab9..ef7cfa9 100644 --- a/test/test.js +++ b/test/test.js @@ -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'); @@ -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