chore: remove container registration name (#9137)

This commit is contained in:
Carlos R. L. Rodrigues authored and GitHub committed 2024-09-16 06:22:24 -03:00
1 parent ab4a422fc8
commit 950cf9af79
421 files changed
+1528 -2496

No files matched your search

@@ -1,6 +1,6 @@
import { medusaIntegrationTestRunner } from "medusa-test-utils"
import { MedusaContainer } from "@medusajs/types"
import { composeMessage, ModuleRegistrationName } from "@medusajs/utils"
import { Modules, composeMessage } from "@medusajs/utils"
import { medusaIntegrationTestRunner } from "medusa-test-utils"
import testEventPayloadHandlerMock from "../../dist/subscribers/test-event-payload"
jest.setTimeout(30000)
@@ -15,7 +15,7 @@ medusaIntegrationTestRunner({
})
it(`should emit event with the expected shape to be received by the subscribers`, async () => {
const eventBus = container.resolve(ModuleRegistrationName.EVENT_BUS)
const eventBus = container.resolve(Modules.EVENT_BUS)
const eventName = "test-event-payload"
await eventBus.emit(