Skip to content

Commit

Permalink
fix: gulp-util deprecations. use Vinyl
Browse files Browse the repository at this point in the history
  • Loading branch information
boopathi committed Feb 20, 2018
1 parent 8de315f commit 0bf77a5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/gulp-babel-minify/__tests__/gulp-babili-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
jest.autoMockOff();

const gutil = require("gulp-util");
const File = require("vinyl");
const babelCore = require("babel-core");
const minifyPreset = require("babel-preset-minify");

Expand All @@ -27,7 +27,7 @@ describe("gulp-babel-minify", () => {
stream.on("error", reject);

stream.write(
new gutil.File({
new File({
path: "defaults.js",
contents: new Buffer(source)
})
Expand Down Expand Up @@ -59,7 +59,7 @@ describe("gulp-babel-minify", () => {
stream.on("error", reject);

stream.write(
new gutil.File({
new File({
path: "options.js",
contents: new Buffer(source)
})
Expand Down Expand Up @@ -101,7 +101,7 @@ describe("gulp-babel-minify", () => {
stream.on("error", reject);

stream.write(
new gutil.File({
new File({
path: "custom-transformers.js",
contents: new Buffer("foo()")
})
Expand All @@ -127,7 +127,7 @@ describe("gulp-babel-minify", () => {
let file;

beforeEach(() => {
file = new gutil.File({
file = new File({
path: "comments.js",
contents: new Buffer(source)
});
Expand Down Expand Up @@ -223,7 +223,7 @@ describe("gulp-babel-minify", () => {
stream.on("error", reject);

stream.write(
new gutil.File({
new File({
path: "options.js",
contents: new Buffer(source)
})
Expand Down

0 comments on commit 0bf77a5

Please sign in to comment.