fixed tests tsyringe resolve

This commit is contained in:
TheSparta 2023-10-26 21:01:59 +01:00
parent abbd60d7e2
commit 1eceb797e2

View File

@ -1,15 +1,14 @@
import "reflect-metadata";
import { container } from "tsyringe";
import { ItemHelper } from "@spt-aki/helpers/ItemHelper";
describe("ItemHelper", () =>
{
let itemHelper: ItemHelper;
beforeEach(() =>
beforeAll(() =>
{
itemHelper = container.resolve<ItemHelper>("ItemHelper");
itemHelper = globalThis.container.resolve<ItemHelper>("ItemHelper");
});
afterEach(() =>