-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmockData.js
More file actions
executable file
·57 lines (53 loc) · 904 Bytes
/
Copy pathmockData.js
File metadata and controls
executable file
·57 lines (53 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
const courses = [
{
id: 1,
title: "Course 1",
slug: "course-1",
authorId: 1,
categoryId: 1,
},
{
id: 2,
title: "Course 2",
slug: "course-2",
authorId: 1,
categoryId: 1,
},
{
id: 3,
title: "Course 3",
slug: "course-3",
authorId: 1,
categoryId: 2,
},
{
id: 4,
title: "Course 4",
slug: "course-4",
authorId: 1,
categoryId: 3,
},
];
const authors = [
{ id: 1, name: "Author 1" },
{ id: 2, name: "Author 2" },
{ id: 3, name: "Author 3" },
];
const categories = [
{ id: 1, name: "Category 1" },
{ id: 2, name: "Category 2" },
{ id: 3, name: "Category 3" },
];
const newCourse = {
id: null,
title: "",
authorId: null,
category: "",
};
// Using CommonJS style export so we can consume via Node (without using Babel-node)
module.exports = {
newCourse,
courses,
authors,
categories,
};