chore: test fix
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
"cross-env": "^5.2.1",
|
||||
"eslint": "^6.8.0",
|
||||
"jest": "^25.5.2",
|
||||
"medusa-interfaces": "^1.1.10",
|
||||
"nodemon": "^2.0.1",
|
||||
"prettier": "^1.19.1",
|
||||
"supertest": "^4.0.2"
|
||||
|
||||
@@ -45,6 +45,9 @@ describe("RegionService", () => {
|
||||
})
|
||||
|
||||
const storeService = {
|
||||
withTransaction: function() {
|
||||
return this
|
||||
},
|
||||
retrieve: () => {
|
||||
return {
|
||||
id: IdMap.getId("test-store"),
|
||||
@@ -221,6 +224,9 @@ describe("RegionService", () => {
|
||||
})
|
||||
|
||||
const storeService = {
|
||||
withTransaction: function() {
|
||||
return this
|
||||
},
|
||||
retrieve: () => {
|
||||
return {
|
||||
id: IdMap.getId("test-store"),
|
||||
@@ -312,6 +318,9 @@ describe("RegionService", () => {
|
||||
})
|
||||
|
||||
const storeService = {
|
||||
withTransaction: function() {
|
||||
return this
|
||||
},
|
||||
retrieve: () => {
|
||||
return {
|
||||
id: IdMap.getId("test-store"),
|
||||
|
||||
@@ -359,6 +359,9 @@ describe("ShippingOptionService", () => {
|
||||
}
|
||||
|
||||
const regionService = {
|
||||
withTransaction: function() {
|
||||
return this
|
||||
},
|
||||
retrieve: () => {
|
||||
return Promise.resolve({ fulfillment_providers: [{ id: "provider" }] })
|
||||
},
|
||||
|
||||
@@ -5095,6 +5095,13 @@ medusa-core-utils@^1.1.9:
|
||||
joi "^17.3.0"
|
||||
joi-objectid "^3.0.1"
|
||||
|
||||
medusa-interfaces@^1.1.10:
|
||||
version "1.1.10"
|
||||
resolved "https://registry.yarnpkg.com/medusa-interfaces/-/medusa-interfaces-1.1.10.tgz#e81b885e11d6c2f05db8d2971edf30b8f8e7ddaa"
|
||||
integrity sha512-FJSpX3CE5jx2mYqRARFSp5C6x5Hq+MEZ6p2UikuWnm40qjGsbHNl4naZFdBS1u/vSnXq+607oHuZnCNnpRDrPQ==
|
||||
dependencies:
|
||||
medusa-core-utils "^1.1.9"
|
||||
|
||||
medusa-test-utils@^1.1.12:
|
||||
version "1.1.12"
|
||||
resolved "https://registry.yarnpkg.com/medusa-test-utils/-/medusa-test-utils-1.1.12.tgz#1a731a3bd0c7266105b75d88dce7c09657432002"
|
||||
|
||||
Reference in New Issue
Block a user