Skip to content

Commit

Permalink
Small Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanushanth committed Aug 17, 2023
1 parent e356588 commit 8cddc06
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions server/test/services/FroshServices.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ const FroshGroupModel = require('../../src/models/FroshGroupModel');
const assert = require('assert');

describe('Testing Frosh Services', () => {


it('.getNewFroshGroup(discipline, pronouns, froshGroupList)\t|\tGetting a new Frosh Group (PREMADE LIST)', async () => {
const discipline = "Electrical & Computer";
const pronouns = "she/her";
Expand All @@ -29,7 +27,7 @@ describe('Testing Frosh Services', () => {
discipline,
pronouns,
);
assert(froshGroup === "alpha");
assert(froshGroup === "alpha" && froshGroupIcon === 'α');
});

// it('.initFroshGroups(groups)\t\t\t|\tInitializing Frosh Groups (INVALID GROUP)', async () => {
Expand Down Expand Up @@ -139,7 +137,7 @@ describe('Testing Frosh Services', () => {
assert(returnedFrosh.froshGroup === frosh.froshGroup);
});

it('.getFroshInfo(id)\t\t\t\t\t\t|\tGetting Frosh ("NONEXISTING USER ID)', async () => {
it('.getFroshInfo(id)\t\t\t\t\t\t|\tGetting Frosh (INVALID USER ID)', async () => {
await assert.rejects(FroshServices.getFroshInfo('999999'), {
name: 'Error',
message: 'UNABLE_TO_GET_FROSH',
Expand All @@ -166,7 +164,7 @@ describe('Testing Frosh Services', () => {
});


it('.getFilteredFroshInfo(query, projection)\t\t\t|\tUpdating Frosh Information (Get All Frosh)', async () => {
it('.getFilteredFroshInfo(query, projection)\t\t\t|\tGetting Frosh Information', async () => {
const query = {};
const query2 = { isRegistered: true };
const filter = { _id: 1 };
Expand All @@ -176,7 +174,7 @@ describe('Testing Frosh Services', () => {
});


it('.getFilteredUserInfo(query, projection)\t\t\t|\tUpdating User Information', async () => {
it('.getFilteredUserInfo(query, projection)\t\t\t|\tGetting User Information', async () => {
const query = {};
const query2 = { isRegistered: true };
const filter = { _id: 1 };
Expand Down

0 comments on commit 8cddc06

Please sign in to comment.