Skip to content

Commit cb7d1a8

Browse files
author
Rajat
committed
Test fix and updated MediaLit instructions
1 parent b62c4ac commit cb7d1a8

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

apps/web/graphql/courses/__tests__/logic.test.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ describe("updateCourse", () => {
5353
});
5454
});
5555

56+
beforeEach(async () => {
57+
await CourseModel.deleteMany({ domain: testDomain._id });
58+
jest.clearAllMocks();
59+
});
60+
5661
afterAll(async () => {
5762
await PageModel.deleteOne({ _id: page._id });
5863
await UserModel.deleteMany({ domain: testDomain._id });
@@ -93,8 +98,8 @@ describe("updateCourse", () => {
9398

9499
const course = await CourseModel.create({
95100
domain: testDomain._id,
96-
courseId: id("course"),
97-
title: "Test Course",
101+
courseId: id("course-unique"),
102+
title: id("course-title"),
98103
creatorId: adminUser.userId,
99104
deleteable: true,
100105
pageId: page.pageId,
@@ -166,8 +171,8 @@ describe("updateCourse", () => {
166171

167172
const course = await CourseModel.create({
168173
domain: testDomain._id,
169-
courseId: id("course"),
170-
title: "Test Course",
174+
courseId: id("course-unique-2"),
175+
title: id("course-title-2"),
171176
creatorId: adminUser.userId,
172177
deleteable: true,
173178
pageId: page.pageId,

deployment/docker/docker-compose.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,15 @@ services:
149149
# - CLOUD_SECRET=${CLOUD_SECRET?'CLOUD_SECRET is required'}
150150
# - CLOUD_BUCKET_NAME=${CLOUD_BUCKET_NAME?'CLOUD_BUCKET_NAME is required'}
151151
# - CLOUD_PREFIX=${CLOUD_PREFIX?'CLOUD_PREFIX is required'}
152-
# - S3_ENDPOINT=${S3_ENDPOINT?'S3_ENDPOINT is required'}
152+
# - CDN_ENDPOINT=${CDN_ENDPOINT?'CDN_ENDPOINT is required'}
153153

154154
# # Temporary file directory for uploads transformations
155155
# - TEMP_FILE_DIR_FOR_UPLOADS=/tmp
156156

157157
# - ENABLE_TRUST_PROXY=${ENABLE_TRUST_PROXY}
158158

159159
# # CloudFront configuration
160-
# - USE_CLOUDFRONT=${USE_CLOUDFRONT}
161-
# - CLOUDFRONT_ENDPOINT=${CLOUDFRONT_ENDPOINT}
160+
# - ACCESS_PRIVATE_BUCKET_VIA_CLOUDFRONT=${ACCESS_PRIVATE_BUCKET_VIA_CLOUDFRONT}
162161
# - CLOUDFRONT_KEY_PAIR_ID=${CLOUDFRONT_KEY_PAIR_ID}
163162
# - CLOUDFRONT_PRIVATE_KEY=${CLOUDFRONT_PRIVATE_KEY}
164163
# - CDN_MAX_AGE=${CDN_MAX_AGE}

0 commit comments

Comments
 (0)