Skip to content

Commit 6fbcd75

Browse files
committed
fix test
1 parent 3179c0b commit 6fbcd75

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/backend/tests/work-packages.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ describe('Work Packages', () => {
169169
);
170170
});
171171

172-
test("fails if the blocked by include the work package's own project", async () => {
172+
test('fails if the blocked by is a project', async () => {
173173
vi.spyOn(prisma.wBS_Element, 'findUnique').mockResolvedValueOnce(prismaWbsElement1);
174174
const argsToTest: [User, string, number, WorkPackageStage, string, number, WbsNumber[], string[], string[]] = [
175175
batman,
@@ -187,9 +187,7 @@ describe('Work Packages', () => {
187187
return await WorkPackageService.createWorkPackage.apply(null, argsToTest);
188188
};
189189

190-
await expect(callCreateWP()).rejects.toThrow(
191-
new HttpException(400, 'A Work Package cannot have its own project as a blocker')
192-
);
190+
await expect(callCreateWP()).rejects.toThrow(new HttpException(400, 'A Project cannot be a Blocker'));
193191
});
194192

195193
test('the endpoint completes successfully', async () => {

0 commit comments

Comments
 (0)