fix: Add some tests and test cleanup for product module (#6586)

This commit is contained in:
Stevche Radevski
2024-03-05 17:18:46 +01:00
committed by GitHub
parent e5dc918be5
commit a6736c7ee0
16 changed files with 710 additions and 801 deletions
+2 -2
View File
@@ -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",