Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
garg3133 committed May 16, 2024
1 parent 4273548 commit 03dda19
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions test/unit_tests/testRun.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const path = require('path');
const mockery = require('mockery');
const assert = require('assert');
const nock = require('nock');
const {extend} = require('axios/lib/utils');

function mockLogger(consoleOutput) {
mockery.registerMock(
Expand Down Expand Up @@ -56,8 +55,7 @@ describe('test run function', function() {
mockery.registerMock('./utils', {
isNodeProject() {
return true;
},
extend
}
});

let rootDirPassed;
Expand Down Expand Up @@ -93,8 +91,7 @@ describe('test run function', function() {
mockery.registerMock('./utils', {
isNodeProject() {
return false;
},
extend
}
});

mockery.registerMock('node:fs', {
Expand Down Expand Up @@ -148,8 +145,7 @@ describe('test run function', function() {
mockery.registerMock('./utils', {
isNodeProject() {
return false;
},
extend
}
});

mockery.registerMock('node:fs', {
Expand Down Expand Up @@ -213,8 +209,7 @@ describe('test run function', function() {
mockery.registerMock('node:fs', {
existsSync() {
return true;
},
extend
}
});

let rootDirPassed;
Expand Down Expand Up @@ -429,8 +424,7 @@ describe('test run function', function() {
mockery.registerMock('./utils', {
isNodeProject() {
return false;
},
extend
}
});

mockery.registerMock('node:fs', {
Expand Down

0 comments on commit 03dda19

Please sign in to comment.