Skip to content

Commit 2dc46d6

Browse files
committed
remove unecessary test file
1 parent a232b99 commit 2dc46d6

3 files changed

Lines changed: 2 additions & 25 deletions

File tree

.mocharc.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"colors": true,
3-
"file": [
4-
"testResources/setup.ts"
5-
],
63
"forbidOnly": true,
74
"require": [
85
"ts-node/register"

src/diff/oasDiff.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import { expect } from "chai";
1010
import proxyquire from "proxyquire";
1111
import sinon from "sinon";
12-
import { consoleStub } from "../../testResources/setup";
1312

1413
const pq = proxyquire.noCallThru();
1514

@@ -681,6 +680,7 @@ describe("oasDiffChangelog", () => {
681680
});
682681

683682
it("should normalize directory names when normalize-directory-names flag is passed", async () => {
683+
const consoleStub = sinon.stub(console, "log");
684684
const execStub = createMockExec();
685685
execStub.onSecondCall().callsArgWith(1, null, "changes in api-1", "");
686686

@@ -727,6 +727,7 @@ describe("oasDiffChangelog", () => {
727727
(args) => args[0] === "Processing directory pair: api-2"
728728
);
729729
expect(processingMessage2).to.not.be.undefined;
730+
consoleStub.restore();
730731
});
731732

732733
it("should handle fs.readdir error in findYamlFiles function", async () => {

testResources/setup.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)