Tests refactor
This commit is contained in:
parent
245520fb50
commit
99134d8556
165 changed files with 911 additions and 531 deletions
|
|
@ -17,7 +17,7 @@ const shoppingItemSchema = new mongoose.Schema(
|
|||
category: { type: String },
|
||||
addedToPantry: { type: Boolean, required: true, default: false },
|
||||
},
|
||||
{ _id: false }
|
||||
{ _id: false },
|
||||
);
|
||||
|
||||
const shoppingListSourceSchema = new mongoose.Schema(
|
||||
|
|
@ -25,7 +25,7 @@ const shoppingListSourceSchema = new mongoose.Schema(
|
|||
type: { type: String, required: true }, // values from ShoppingListSourceType
|
||||
referenceId: { type: String },
|
||||
},
|
||||
{ _id: false }
|
||||
{ _id: false },
|
||||
);
|
||||
|
||||
const shoppingListSchema = new mongoose.Schema(
|
||||
|
|
@ -44,7 +44,7 @@ const shoppingListSchema = new mongoose.Schema(
|
|||
completedAt: { type: Date },
|
||||
createdBy: { type: String, required: true },
|
||||
},
|
||||
{ timestamps: true }
|
||||
{ timestamps: true },
|
||||
);
|
||||
|
||||
shoppingListSchema.index({ householdId: 1, status: 1 });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue