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

This commit is contained in:
Stevche Radevski authored and GitHub committed 2024-03-05 17:18:46 +01:00
1 parent e5dc918be5
commit a6736c7ee0
16 files changed
+710 -801

No files matched your search

+2 -2
View File
@@ -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.
Internal Server Error - Gitea: Git with a cup of tea
500 Internal Server Error

An error occurred:

An error occurred

Gitea Version: 28.1.0