Skip to content

Commit 8bc79da

Browse files
refactor: update the bounty course to extend from the mockcourse
1 parent 998c04b commit 8bc79da

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

__mocks__/bounty.ts

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,15 @@ import { Bounty, BountyCourse } from "@/types/bounty";
22
import { colors } from "./colors";
33
import { reward } from "./reward";
44
import { metadata } from "./community";
5+
import { mockCourse } from "./course";
56

67
const mockBountyCourse: BountyCourse = {
8+
...mockCourse,
9+
prerequisite: [""],
710
duration: 0,
8-
slug: "",
911
active: false,
10-
id: "",
11-
ref: "",
12-
created_at: new Date(),
13-
updated_at: new Date(),
14-
summary: "",
15-
level: 0,
16-
name: "",
17-
description: "",
18-
objectives: [],
19-
locale: "",
20-
community: "",
21-
introduction: {
22-
text: ""
23-
},
24-
certificateIcon: "",
25-
certificateData: {
26-
narrative: "",
27-
icon: ""
28-
},
29-
timestamp: 0,
30-
learningModules: [],
31-
translations: []
12+
slug: "ICP",
13+
3214
}
3315
export const mockBounty: Bounty = {
3416
url: "",

0 commit comments

Comments
 (0)