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 = {}) => {
|
module.exports = async (dataSource, data = {}) => {
|
||||||
const manager = dataSource.manager
|
const manager = dataSource.manager
|
||||||
|
|
||||||
const defaultProfile = await manager.findOne(ShippingProfile, {
|
const defaultProfile = (await manager.findOne(ShippingProfile, {
|
||||||
where: {
|
where: {
|
||||||
type: ShippingProfileType.DEFAULT,
|
type: ShippingProfileType.DEFAULT,
|
||||||
},
|
},
|
||||||
})
|
})) || { id: "default-profile" }
|
||||||
|
|
||||||
const coll = manager.create(ProductCollection, {
|
const coll = manager.create(ProductCollection, {
|
||||||
id: "test-collection",
|
id: "test-collection",
|
||||||
|
|||||||
File renamed without changes.
|
500 Internal Server Error
An error occurred: An error occurred Gitea Version: 28.1.0 |