Skip to content

Commit

Permalink
Merge pull request #44 from Educado-App/offline-3-merge
Browse files Browse the repository at this point in the history
[Team Offline Merge] updates models + created and updates routes
  • Loading branch information
sofiiagran authored Oct 13, 2023
2 parents fa65699 + 236b12b commit 350852f
Show file tree
Hide file tree
Showing 25 changed files with 20,097 additions and 257 deletions.
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
node_modules
config/dev.js
config/educado-*.json
config/gcp_service.json

*.DS_Store
package-lock.json
dev.js
config/.env
*.idea
.idea

# enviroment
.env
Expand Down
13 changes: 13 additions & 0 deletions __tests__/fixtures/fakeCourse.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = function makeFakeCourse() {

return {
sections: [],
title: 'test course',
category: 'test',
difficulty: 1,
hours: 10,
description: "This course is a test course",
dateCreated: new Date(),
dateUpdated: new Date()
};
};
14 changes: 14 additions & 0 deletions __tests__/fixtures/fakeSection.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = function makeFakeSection() {

return {
exercises: [],
title: 'test section',
description: 'this is a test section',
sectionNumber: 1,
createdAt: Date,
modifiedAt: Date,
totalPoints: 100,
components: [],
parentCourse: '',
};
};
5 changes: 4 additions & 1 deletion __tests__/fixtures/fakeUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ module.exports = function makeFakeUser() {
joinedAt: new Date(),
modifiedAt: new Date(),
firstName: 'Fake first name',
lastName: 'Fake last name'
lastName: 'Fake last name',
subscriptions: [

]
}
}
Loading

0 comments on commit 350852f

Please sign in to comment.