Skip to content

Commit

Permalink
fixed builds and unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ARADDCC002 committed Dec 3, 2024
1 parent e6eb400 commit fb30748
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/test/clients/modelScan.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ describe('clients > modelScan', () => {
})

test('scanFile > rejected', async () => {
fetchMock.default.mockRejectedValueOnce('Unable to communicate with the inferencing service.')
fetchMock.default.mockRejectedValueOnce('Unable to communicate with the ModelScan service.')

expect(() => scanFile(new Blob([''], { type: 'application/x-hdf5' }), 'safe_model.h5')).rejects.toThrowError(
/^Unable to communicate with the ModelScan service./,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ vi.mock('../../../src/connectors/authentication/index.js', () => ({

const fileScanResult: FileScanResult = {
state: 'complete',
lastRunAt: new Date(),
isInfected: false,
toolName: 'Test',
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ vi.mock('../../../../src/services/accessRequest.js', async () => ({
const fileScanResult: FileScanResult = {
state: 'complete',
isInfected: false,
lastRunAt: new Date(),
toolName: 'Test',
}

Expand Down
1 change: 1 addition & 0 deletions backend/test/services/mirroredModel.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { exportModel, importModel } from '../../src/services/mirroredModel.js'
const fileScanResult: FileScanResult = {
state: 'complete',
isInfected: false,
lastRunAt: new Date(),
toolName: 'Test',
}

Expand Down

0 comments on commit fb30748

Please sign in to comment.