Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
Loki-Afro committed Oct 22, 2024
1 parent ab1d7e7 commit 014298e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ToolContextType } from '@modules/tool/common/enum';
import { SchoolExternalToolEntity } from '@modules/tool/school-external-tool/entity';
import { schoolExternalToolEntityFactory } from '@modules/tool/school-external-tool/testing';
import { ObjectId } from '@mikro-orm/mongodb';
import { ContextExternalToolScope } from './context-external-tool.scope';

describe('CourseExternalToolScope', () => {
Expand Down Expand Up @@ -63,7 +64,7 @@ describe('CourseExternalToolScope', () => {

scope.byContextId(schoolExternalToolEntity.id);

expect(scope.query).toEqual({ contextId: schoolExternalToolEntity.id });
expect(scope.query).toEqual({ contextId: new ObjectId(schoolExternalToolEntity.id) });
});
});
});
Expand Down

0 comments on commit 014298e

Please sign in to comment.