fix: Add some tests and test cleanup for product module (#6586)
This commit is contained in:
1 parent
e5dc918be5
commit
a6736c7ee0
16 files changed
+710
-801
No files matched your search
@@ -16,11 +16,11 @@ const {
|
||||
module.exports = async (dataSource, data = {}) => {
|
||||
const manager = dataSource.manager
|
||||
|
||||
const defaultProfile = await manager.findOne(ShippingProfile, {
|
||||
const defaultProfile = (await manager.findOne(ShippingProfile, {
|
||||
where: {
|
||||
type: ShippingProfileType.DEFAULT,
|
||||
},
|
||||
})
|
||||
})) || { id: "default-profile" }
|
||||
|
||||
const coll = manager.create(ProductCollection, {
|
||||
id: "test-collection",
|
||||
|
||||
Reference in new issue
Block a user