Skip to content

Commit

Permalink
fixes build
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgarritano committed Apr 16, 2024
1 parent b9bd321 commit cc2026f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/tests/controllers.tests/dummyData.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import mongoose from "mongoose";
import { templates } from "../../models/resume.model";

export const activityDummyData1 = {
user: "test",
Expand Down Expand Up @@ -61,7 +62,7 @@ export const resumeDummyData1 = {
user: "test",
itemName: "resumeItem1",
itemIds: [new mongoose.Types.ObjectId("65e4f54db1e12e776e01cf31")],
templateId: new mongoose.Types.ObjectId("75e4f54db1e12e776e01cf31"),
templateId: templates.BLUE,
}

export const sectionHeadingDummyData1 = {
Expand Down
4 changes: 2 additions & 2 deletions src/tests/controllers.tests/resume.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { dbConnect, dbDisconnect } from "../dbHandler";
import { type resumeType } from "../../models/resume.model";
import { templates, type resumeType } from "../../models/resume.model";
import { type ActivitiesType } from "../../models/activities.model";
import { resumeDummyData1, activityDummyData1 } from "./dummyData";
import {
Expand Down Expand Up @@ -85,7 +85,7 @@ describe("Resume controller tests", () => {
const newActivity = await createActivity(activityDummyData1 as ActivitiesType);
let resumeDummyData2 = structuredClone(resumeDummyData1);
resumeDummyData2.itemIds = [newActivity._id];
resumeDummyData2.templateId = new mongoose.Types.ObjectId("75e4f54db1e12e776e01cf31");
resumeDummyData2.templateId = templates.JAKES


const origResume = await createResume(resumeDummyData2 as resumeType);
Expand Down

0 comments on commit cc2026f

Please sign in to comment.