fix: normalize path before consuming it while loading models (#8194)
* fix: normalize path before consuming it while loading models * Make it so that models derived from the service if present * fix linkable tests that now match what has been passed to the medusa service if there is no custom joiner config * fix linkable tests that now match what has been passed to the medusa service if there is no custom joiner config * fix linkable tests that now match what has been passed to the medusa service if there is no custom joiner config
This commit is contained in:
committed by
GitHub
parent
2f56030101
commit
566300d54b
@@ -15,21 +15,13 @@ moduleIntegrationTestRunner<IStoreModuleService>({
|
||||
service: StoreModuleService,
|
||||
}).linkable
|
||||
|
||||
expect(Object.keys(linkable)).toEqual(["storeCurrency", "store"])
|
||||
expect(Object.keys(linkable)).toEqual(["store", "storeCurrency"])
|
||||
|
||||
Object.keys(linkable).forEach((key) => {
|
||||
delete linkable[key].toJSON
|
||||
})
|
||||
|
||||
expect(linkable).toEqual({
|
||||
storeCurrency: {
|
||||
id: {
|
||||
linkable: "store_currency_id",
|
||||
primaryKey: "id",
|
||||
serviceName: "store",
|
||||
field: "storeCurrency",
|
||||
},
|
||||
},
|
||||
store: {
|
||||
id: {
|
||||
linkable: "store_id",
|
||||
@@ -38,6 +30,14 @@ moduleIntegrationTestRunner<IStoreModuleService>({
|
||||
field: "store",
|
||||
},
|
||||
},
|
||||
storeCurrency: {
|
||||
id: {
|
||||
linkable: "store_currency_id",
|
||||
primaryKey: "id",
|
||||
serviceName: "store",
|
||||
field: "storeCurrency",
|
||||
},
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user