Skip to content

Commit

Permalink
ENH:changes the admin in e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
ShreyasMandlik committed Jul 6, 2023
1 parent 6089154 commit 8e1a74d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
15 changes: 15 additions & 0 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"eslint-plugin-prettier": "^4.0.0",
"jest": "29.3.1",
"prettier": "^2.3.2",
"prisma": "^4.12.0",
"source-map-support": "^0.5.20",
"supertest": "^6.1.3",
"ts-jest": "29.0.3",
Expand Down
2 changes: 1 addition & 1 deletion backend/test/course.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('CourseController (e2e)', () => {

it('course/popular/filterByTags (GET) - should return popular courses which tags is provided', async () => {
const response = await request(app.getHttpServer())
.get('/course/filterByTags?tags=1')
.get('/course/popular/filterByTags?tags=1')
.set('Authorization', `Bearer ${authToken}`);
expect(response.status).toBe(200);
});
Expand Down
2 changes: 1 addition & 1 deletion backend/test/user.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('UserController (e2e)', () => {
await app.init();

user = {
email: 'utsav.p@incubyte.co',
email: 'testadmin@incubyte.co',
password: 'Incubyte@111',
};
await request(app.getHttpServer()).post('/auth/signup').send(user);
Expand Down

0 comments on commit 8e1a74d

Please sign in to comment.