Skip to content

Commit

Permalink
Update tests for updated class schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Oct 16, 2024
1 parent 28716be commit c54272c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/educators.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { Express } from "express";

import { authorize, getTestDatabaseConnection } from "./utils";
import { setupApp } from "../src/app";
import { Class, Educator, Student, StudentsClasses } from "../src/models";
import { Educator } from "../src/models";
import { createApp } from "../src/server";
import { v4 } from "uuid";

Expand Down
2 changes: 2 additions & 0 deletions tests/students.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ async function setupStudentInClasses() {
name: v4(),
educator_id: educator.id,
code: v4(),
expected_size: 1,
});
const class2 = await Class.create({
name: v4(),
educator_id: educator.id,
code: v4(),
expected_size: 1,
});
const student = await Student.create({
email: v4(),
Expand Down

0 comments on commit c54272c

Please sign in to comment.