Skip to content

Commit 147f090

Browse files
fixed testcase for loading modelfile from external uri
1 parent 47a54b5 commit 147f090

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/tests/commons/loadWeightMap.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ describe('loadWeightMap', () => {
6060
})
6161

6262
it('returns correct uris, given external path', () => {
63-
const uri = 'https://example.com/path/to/modelfiles/';
63+
const uri = 'https://example.com/path/to/modelfiles';
6464
const result = getModelUris(uri, FAKE_DEFAULT_MODEL_NAME)
6565

66-
expect(result.manifestUri).toEqual(uri + 'model-weights_manifest.json')
66+
expect(result.manifestUri).toEqual(`${uri}/${FAKE_DEFAULT_MODEL_NAME}-weights_manifest.json`)
6767
expect(result.modelBaseUri).toEqual(uri)
6868
})
6969

0 commit comments

Comments
 (0)