Commit 35b8913f by Brian

Adding test for external uri

parent 0939dbe9
...@@ -59,6 +59,14 @@ describe('loadWeightMap', () => { ...@@ -59,6 +59,14 @@ describe('loadWeightMap', () => {
expect(result.modelBaseUri).toEqual('/path/to/modelfiles') expect(result.modelBaseUri).toEqual('/path/to/modelfiles')
}) })
it('returns correct uris, given external path', () => {
const uri = 'https://example.com/path/to/modelfiles/';
const result = getModelUris(uri, FAKE_DEFAULT_MODEL_NAME)
expect(result.manifestUri).toEqual(uri + 'model-weights_manifest.json')
expect(result.modelBaseUri).toEqual(uri)
})
}) })
}) })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment