Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Main committed Jan 11, 2023
1 parent bd36acc commit 01b6c70
Showing 1 changed file with 25 additions and 26 deletions.
51 changes: 25 additions & 26 deletions tests/integration/server/faculty/facultysubscriber.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,36 +65,35 @@ describe('Faculty subscriber', function () {
afterEach(async function () {
await module.close();
});
it('creates a new absence record for each semester', async function () {
// Create a new faculty member
await facultyRepository.save({
firstName: appliedMathFacultyMember.firstName,
lastName: appliedMathFacultyMember.lastName,
HUID: appliedMathFacultyMember.HUID,
category: appliedMathFacultyMember.category,
area,
});
it('creates a new absence record for each semester', async function () {
// Create a new faculty member
await facultyRepository.save({
firstName: appliedMathFacultyMember.firstName,
lastName: appliedMathFacultyMember.lastName,
HUID: appliedMathFacultyMember.HUID,
category: appliedMathFacultyMember.category,
area,
});

const absences = await absenceRepository.find();
const absences = await absenceRepository.find();

strictEqual(semesters.length, absences.length);
strictEqual(semesters.length, absences.length);
});
it('creates new absence records for the given faculty member', async function () {
const {
id: facultyId,
} = await facultyRepository.save({
firstName: appliedMathFacultyMember.firstName,
lastName: appliedMathFacultyMember.lastName,
HUID: appliedMathFacultyMember.HUID,
category: appliedMathFacultyMember.category,
area,
});
it('creates new absence records for the given faculty member', async function () {
const {
id: facultyId,
} = await facultyRepository.save({
firstName: appliedMathFacultyMember.firstName,
lastName: appliedMathFacultyMember.lastName,
HUID: appliedMathFacultyMember.HUID,
category: appliedMathFacultyMember.category,
area,
});

const absencesMatchfaculty = (await absenceRepository.find({
relations: ['faculty'],
})).every(({ faculty }) => faculty.id === facultyId);
const absencesMatchfaculty = (await absenceRepository.find({
relations: ['faculty'],
})).every(({ faculty }) => faculty.id === facultyId);

strictEqual(absencesMatchfaculty, true);
});
strictEqual(absencesMatchfaculty, true);
});
});

0 comments on commit 01b6c70

Please sign in to comment.