Remove failing profile fixer tests (!404)

The code this was testing has been deleted so these tests were failing, don't see any point to keep the empty file after deleting the tests that are gone.

Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/404
Co-authored-by: Alex McAuliffe <alex@romanx.co.uk>
Co-committed-by: Alex McAuliffe <alex@romanx.co.uk>
This commit is contained in:
Alex McAuliffe 2024-08-31 17:35:46 +00:00 committed by chomp
parent 38263e4dbb
commit f362f4eddc

View File

@ -1,33 +0,0 @@
import { ProfileFixerService } from "@spt/services/ProfileFixerService";
import { container } from "tsyringe";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
describe("ProfileFixerService", () => {
let profileFixerService: any; // Using "any" to access private/protected methods without type errors.
beforeEach(() => {
profileFixerService = container.resolve<ProfileFixerService>("ProfileFixerService");
});
afterEach(() => {
vi.restoreAllMocks();
});
describe("FixPmcProfileIssues", () => {
it("should reset nextResupply to 0 when it is undefined", () => {
const pmcProfile = { TradersInfo: { traderId: { nextResupply: undefined } } };
profileFixerService.fixNullTraderNextResupply(pmcProfile);
expect(pmcProfile.TradersInfo.traderId.nextResupply).toBe(0);
});
it("should not reset nextResupply to 0 when it is not undefined", () => {
const pmcProfile = { TradersInfo: { traderId: { nextResupply: 1234 } } };
profileFixerService.fixNullTraderNextResupply(pmcProfile);
expect(pmcProfile.TradersInfo.traderId.nextResupply).toBe(1234);
});
});
});