Skip to content

Commit

Permalink
Minor clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerlcleung committed Dec 5, 2024
1 parent e07e183 commit cf251e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ afterEach(() => {

describe("Compliance Calculator Container", () => {
test("renders without crashing", async () => {
const _ = new MockedDetailsPage();
new MockedDetailsPage();
await renderComplianceCalculatorContainer(baseProps);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,10 @@ jest.mock("axios", () => {

beforeEach(() => {
jest.spyOn(axios, "get").mockImplementation((url) => {
switch (url) {
case ROUTES_COMPLIANCE.RATIOS:
return Promise.resolve({ data: complianceRatios });
default:
return Promise.resolve({ data: [] });
if (url === ROUTES_COMPLIANCE.RATIOS) {
return Promise.resolve({ data: complianceRatios });
}
return Promise.resolve({ data: [] });
});
});

Expand Down

0 comments on commit cf251e6

Please sign in to comment.