-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
14 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import { CORTEX_DEFAULT_PORT } from './consts' | ||
|
||
import { NITRO_DEFAULT_PORT } from './consts'; | ||
|
||
it('should test NITRO_DEFAULT_PORT', () => { | ||
expect(NITRO_DEFAULT_PORT).toBe(3928); | ||
}); | ||
it('should test CORTEX_DEFAULT_PORT', () => { | ||
expect(CORTEX_DEFAULT_PORT).toBe(39291) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,10 @@ | ||
import { startModel } from './startStopModel' | ||
|
||
describe('startModel', () => { | ||
it('test_startModel_error', async () => { | ||
const modelId = 'testModelId' | ||
const settingParams = undefined | ||
|
||
import { startModel } from './startStopModel' | ||
|
||
describe('startModel', () => { | ||
it('test_startModel_error', async () => { | ||
const modelId = 'testModelId' | ||
const settingParams = undefined | ||
|
||
const result = await startModel(modelId, settingParams) | ||
|
||
expect(result).toEqual({ | ||
error: expect.any(Error), | ||
}) | ||
}) | ||
expect(startModel(modelId, settingParams)).resolves.toThrow() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ describe('useModels', () => { | |
filter: () => models, | ||
}), | ||
}), | ||
get: () => undefined, | ||
}, | ||
}) | ||
|
||
|