common-workflow-language / schema_salad

Semantic Annotations for Linked Avro Data
https://www.commonwl.org/v1.2/SchemaSalad.html
Apache License 2.0
72 stars 60 forks source link

The value of copyFrom.fetcher is not used in the LoadingOptions constructor in typescript #805

Closed bioflowy closed 3 months ago

bioflowy commented 4 months ago

The value of copyFrom.fetcher is not used in the LoadingOptions constructor in schema_salad/typescript/util/LoadingOptions.ts .

const original = new LoadingOptions({fetcher: new TestFetcher()})
it('should have the same Fetcher as the original', async () => {
   const copy = new LoadingOptions({copyFrom:original})
   assert.equal(copy.fetcher,original.fetcher)
})

This test fails.