Skip to content

Commit

Permalink
chore: Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
phated authored and actions-user committed Jun 9, 2021
1 parent 642d1ea commit 42f8087
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 20 deletions.
21 changes: 6 additions & 15 deletions test/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ const base = path.join(cwd, 'fixtures');
const filePath = path.join(base, 'helloworld.pug');
const fileContents = fs.readFileSync(filePath);


describe('stream', function() {
it('should handle streaming contents', function(done) {
describe('stream', function () {
it('should handle streaming contents', function (done) {
const file = new Vinyl({
path: filePath,
base: base,
Expand All @@ -30,30 +29,22 @@ describe('stream', function() {
expect(expected).toEqual(String(files[0].contents));
}

pipe([
from.obj([file]),
plugin(),
concat(assert),
], done);
pipe([from.obj([file]), plugin(), concat(assert)], done);
});

it('bubbles errors if the stream errors', function(done) {
it('bubbles errors if the stream errors', function (done) {
const file = new Vinyl({
path: filePath,
base: base,
cwd: cwd,
contents: from([new Error("Boom")])
contents: from([new Error('Boom')]),
});

function assert(err) {
expect(err).toBeDefined();
done();
}

pipe([
from.obj([file]),
plugin(),
concat(),
], assert);
pipe([from.obj([file]), plugin(), concat()], assert);
});
});
6 changes: 1 addition & 5 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,6 @@ describe('test', function () {
expect(newFile.contents).toBe(null);
}


pipe(
[from.obj([file]), task(), concat(assert)],
done
);
pipe([from.obj([file]), task(), concat(assert)], done);
});
});

0 comments on commit 42f8087

Please sign in to comment.