Skip to content

Commit c0f1958

Browse files
committed
fix(api): update eraseTeam test to assert user context instead of hardcoded user ID for improved accuracy
1 parent b2feabb commit c0f1958

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/meteor/app/api/server/lib/eraseTeam.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ describe('eraseTeam (TypeScript) module', () => {
126126

127127
await subject.eraseTeam(user, team, []);
128128

129-
sinon.assert.calledWith(eraseRoomStub, team.roomId, 'u1');
129+
sinon.assert.calledWith(eraseRoomStub, team.roomId, user);
130130
});
131131
});
132132

0 commit comments

Comments
 (0)