Skip to content

Commit

Permalink
N21-1494 fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrikallab committed Nov 23, 2023
1 parent 6659d21 commit 988deaf
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,13 @@ describe('ToolReferenceController (API)', () => {
{
contextToolId: contextExternalToolEntity.id,
displayName: contextExternalToolEntity.displayName as string,
status: ToolConfigurationStatusResponse.LATEST,
status: new ToolConfigurationStatusResponse({
latest: true,
isDisabled: false,
isOutdatedOnScopeSchool: false,
isOutdatedOnScopeContext: false,
isUnkown: false,
}),
logoUrl: `http://localhost:3030/api/v3/tools/external-tools/${externalToolEntity.id}/logo`,
openInNewTab: externalToolEntity.openNewTab,
},
Expand Down Expand Up @@ -277,7 +283,13 @@ describe('ToolReferenceController (API)', () => {
expect(response.body).toEqual<ToolReferenceResponse>({
contextToolId: contextExternalToolEntity.id,
displayName: contextExternalToolEntity.displayName as string,
status: ToolConfigurationStatusResponse.LATEST,
status: new ToolConfigurationStatusResponse({
latest: true,
isDisabled: false,
isOutdatedOnScopeSchool: false,
isOutdatedOnScopeContext: false,
isUnkown: false,
}),
logoUrl: `http://localhost:3030/api/v3/tools/external-tools/${externalToolEntity.id}/logo`,
openInNewTab: externalToolEntity.openNewTab,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ describe('ToolReferenceUc', () => {
logoUrl: externalTool.logoUrl,
contextToolId: contextExternalTool.id as string,
displayName: contextExternalTool.displayName as string,
status: ToolConfigurationStatus.LATEST,
status: new ToolConfigurationStatus({
latest: true,
isDisabled: false,
isOutdatedOnScopeSchool: false,
isOutdatedOnScopeContext: false,
isUnkown: false,
}),
openInNewTab: externalTool.openNewTab,
});

Expand Down Expand Up @@ -146,7 +152,13 @@ describe('ToolReferenceUc', () => {
logoUrl: externalTool.logoUrl,
contextToolId: contextExternalTool.id as string,
displayName: contextExternalTool.displayName as string,
status: ToolConfigurationStatus.LATEST,
status: new ToolConfigurationStatus({
latest: true,
isDisabled: false,
isOutdatedOnScopeSchool: false,
isOutdatedOnScopeContext: false,
isUnkown: false,
}),
openInNewTab: externalTool.openNewTab,
});

Expand Down

0 comments on commit 988deaf

Please sign in to comment.