Skip to content

Commit 53b096a

Browse files
roshan04Karan Nagpal
authored andcommitted
fixed failing spec changes
1 parent dbdaee2 commit 53b096a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/unit/bin/helpers/reporterHTML.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ describe("reportHTML", () => {
276276
describe("Modify Cypress Report Data", ()=> {
277277
const reporterHTML = rewire('../../../../bin/helpers/reporterHTML');
278278
const cypressReportData = reporterHTML.__get__('cypressReportData');
279-
let getMock = sinon.mock(request);
279+
let getMock;
280280
const cypress_report_data_with_config = {
281281
cypress_version: "6.8.0",
282282
rows: {
@@ -307,6 +307,12 @@ describe("reportHTML", () => {
307307
}
308308
}
309309
}
310+
beforeEach(() =>{
311+
getMock = sinon.mock(request);
312+
})
313+
afterEach(() =>{
314+
getMock.restore();
315+
})
310316
it("Generate Report Data for cypress version > 6", async ()=>{
311317
let configResponse = {
312318
"tests": [

0 commit comments

Comments
 (0)