chore(medusa): Clean up atomicPhase usage (#1850)
This commit is contained in:
1 parent
f5091c6370
commit
4dd7fdf61c
21 files changed
+633
-763
No files matched your search
@@ -13,7 +13,7 @@ describe("DiscountService", () => {
|
||||
id: IdMap.getId("france"),
|
||||
}
|
||||
},
|
||||
withTransaction: function() {
|
||||
withTransaction: function () {
|
||||
return this
|
||||
},
|
||||
}
|
||||
@@ -762,7 +762,7 @@ describe("DiscountService", () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
discountService = new DiscountService({
|
||||
manager: MockManager
|
||||
manager: MockManager,
|
||||
})
|
||||
const hasReachedLimitMock = jest.fn().mockImplementation(() => false)
|
||||
const isDisabledMock = jest.fn().mockImplementation(() => false)
|
||||
@@ -1067,7 +1067,7 @@ describe("DiscountService", () => {
|
||||
})
|
||||
|
||||
const discountService = new DiscountService({
|
||||
manager: MockManager
|
||||
manager: MockManager,
|
||||
})
|
||||
discountService.retrieve = retrieveMock
|
||||
|
||||
@@ -1161,6 +1161,9 @@ describe("DiscountService", () => {
|
||||
}
|
||||
|
||||
const customerService = {
|
||||
withTransaction: function () {
|
||||
return this
|
||||
},
|
||||
retrieve: jest.fn().mockImplementation((id) => {
|
||||
if (id === "customer-no-groups") {
|
||||
return Promise.resolve({ id: "customer-no-groups" })
|
||||
|
||||
Reference in new issue
Block a user