00ac9e190a
- Adds additional ItemHelper tests - Attempts to bring container registration into the environment to debug how we can register everything but not actually start the server.
31 lines
729 B
TypeScript
31 lines
729 B
TypeScript
import "reflect-metadata";
|
|
import { DependencyContainer } from "tsyringe";
|
|
|
|
import { PaymentService } from "@spt-aki/services/PaymentService";
|
|
|
|
describe("PaymentService", () =>
|
|
{
|
|
let container: DependencyContainer;
|
|
let paymentService: PaymentService;
|
|
|
|
beforeAll(() =>
|
|
{
|
|
container = globalThis.container;
|
|
paymentService = container.resolve<PaymentService>("PaymentService");
|
|
});
|
|
|
|
afterEach(() =>
|
|
{
|
|
jest.restoreAllMocks();
|
|
});
|
|
|
|
describe("should be registered", () =>
|
|
{
|
|
it("should be registered", () =>
|
|
{
|
|
expect(paymentService).toBeDefined();
|
|
expect(container.isRegistered("PaymentService")).toBe(true);
|
|
});
|
|
});
|
|
});
|