Skip to content

Commit

Permalink
fix plugin context test
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem-Babich committed May 30, 2023
1 parent 6e81c3a commit 8d74e57
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/functional/fixtures/reporter/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,6 @@ const del = require('del');

describe('Reporter Hooks', () => {
it('Should handle onBeforeWrite hook', () => {
let pluginContextProp = {};
const writeData = { prop: true };
const result = {};
const expectedOutput = `formattedText\nformattedText\nformattedText\n`;
Expand All @@ -1203,7 +1202,6 @@ const del = require('del');

function custom () {
return {
taskInfo: { prop: 'val' },
reportTaskDone: noop,
reportFixtureStart: noop,
reportTaskStart () {
Expand All @@ -1227,7 +1225,6 @@ const del = require('del');
data,
formatOptions,
};
pluginContextProp = this.taskInfo;
};
const outStream = createSimpleTestStream();

Expand All @@ -1243,7 +1240,6 @@ const del = require('del');
})
.then(() => {
expect(result).eql(expectedResult);
expect(pluginContextProp).eql({ prop: 'val' });
expect(outStream.data).eql(expectedOutput);
});

Expand Down

0 comments on commit 8d74e57

Please sign in to comment.