Skip to content

Commit c8aea2f

Browse files
ZimmerAmr-c
authored andcommitted
Fix case of shortname function name
1 parent fd54bf0 commit c8aea2f

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

schema_salad/typescript/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ export {
22
loadDocument,
33
loadDocumentByString,
44
ValidationException,
5-
shortName,
5+
shortname,
66
${generated_class_imports}
77
} from './util/Internal'

schema_salad/typescript/test/utilities.spec.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
import { assert } from 'chai'
2-
import { shortName } from '../util/Internal'
2+
import { shortname } from '../util/Internal'
33

44
describe('Test Utilities', () => {
5-
describe('shortName', () => {
5+
describe('shortname', () => {
66
it('test1', async () => {
77
assert.equal(
8-
shortName('file:/Users/jdidion/projects/cwlScala/target/test-classes/CommandLineTools/conformance/#anon_enum_inside_array_inside_schemadef.cwl/first/user_type_2/species/homo_sapiens'),
8+
shortname('file:/Users/jdidion/projects/cwlScala/target/test-classes/CommandLineTools/conformance/#anon_enum_inside_array_inside_schemadef.cwl/first/user_type_2/species/homo_sapiens'),
99
'homo_sapiens'
1010
)
1111
}),
1212
it('test2', async () => {
1313
assert.equal(
14-
shortName('file:///home/michael/cwljava/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_anon_enum_inside_array_inside_schemadef.cwl#vcf2maf_params/ncbi_build/GRCh37'),
14+
shortname('file:///home/michael/cwljava/src/test/resources/org/w3id/cwl/cwl1_2/utils/valid_anon_enum_inside_array_inside_schemadef.cwl#vcf2maf_params/ncbi_build/GRCh37'),
1515
'GRCh37'
1616
)
1717
}),
1818
it('test3', async () => {
1919
assert.equal(
20-
shortName('http://example.com/foo'), 'foo'
20+
shortname('http://example.com/foo'), 'foo'
2121
)
2222
}),
2323
it('test4', async () => {
2424
assert.equal(
25-
shortName('http://example.com/#bar'), 'bar'
25+
shortname('http://example.com/#bar'), 'bar'
2626
)
2727
}),
2828
it('test5', async () => {
2929
assert.equal(
30-
shortName('http://example.com/foo/bar'), 'bar'
30+
shortname('http://example.com/foo/bar'), 'bar'
3131
)
3232
}),
3333
it('test6', async () => {
3434
assert.equal(
35-
shortName('http://example.com/foo#bar'), 'bar'
35+
shortname('http://example.com/foo#bar'), 'bar'
3636
)
3737
}),
3838
it('test7', async () => {
3939
assert.equal(
40-
shortName('http://example.com/#foo/bar'), 'bar'
40+
shortname('http://example.com/#foo/bar'), 'bar'
4141
)
4242
}),
4343
it('test8', async () => {
4444
assert.equal(
45-
shortName('http://example.com/foo#bar/baz'), 'baz'
45+
shortname('http://example.com/foo#bar/baz'), 'baz'
4646
)
4747
})
4848
})

schema_salad/typescript/util/Saveable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export function prefixUrl (url: string, namespaces: Dictionary<string>): string
104104
* See https://w3id.org/cwl/v1.2/SchemaSalad.html#Short_names.
105105
*
106106
*/
107-
export function shortName (inputId: string): string {
107+
export function shortname (inputId: string): string {
108108
const parsedId = URI.parse(inputId)
109109
if (parsedId.fragment != null) {
110110
const fragmentSplit = parsedId.fragment.split('/')

0 commit comments

Comments
 (0)