fix: Add some tests and test cleanup for product module (#6586)
This commit is contained in:
@@ -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