|
1 | 1 | import { assert } from 'chai' |
2 | | -import { shortName } from '../util/Internal' |
| 2 | +import { shortname } from '../util/Internal' |
3 | 3 |
|
4 | 4 | describe('Test Utilities', () => { |
5 | | - describe('shortName', () => { |
| 5 | + describe('shortname', () => { |
6 | 6 | it('test1', async () => { |
7 | 7 | 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'), |
9 | 9 | 'homo_sapiens' |
10 | 10 | ) |
11 | 11 | }), |
12 | 12 | it('test2', async () => { |
13 | 13 | 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'), |
15 | 15 | 'GRCh37' |
16 | 16 | ) |
17 | 17 | }), |
18 | 18 | it('test3', async () => { |
19 | 19 | assert.equal( |
20 | | - shortName('http://example.com/foo'), 'foo' |
| 20 | + shortname('http://example.com/foo'), 'foo' |
21 | 21 | ) |
22 | 22 | }), |
23 | 23 | it('test4', async () => { |
24 | 24 | assert.equal( |
25 | | - shortName('http://example.com/#bar'), 'bar' |
| 25 | + shortname('http://example.com/#bar'), 'bar' |
26 | 26 | ) |
27 | 27 | }), |
28 | 28 | it('test5', async () => { |
29 | 29 | assert.equal( |
30 | | - shortName('http://example.com/foo/bar'), 'bar' |
| 30 | + shortname('http://example.com/foo/bar'), 'bar' |
31 | 31 | ) |
32 | 32 | }), |
33 | 33 | it('test6', async () => { |
34 | 34 | assert.equal( |
35 | | - shortName('http://example.com/foo#bar'), 'bar' |
| 35 | + shortname('http://example.com/foo#bar'), 'bar' |
36 | 36 | ) |
37 | 37 | }), |
38 | 38 | it('test7', async () => { |
39 | 39 | assert.equal( |
40 | | - shortName('http://example.com/#foo/bar'), 'bar' |
| 40 | + shortname('http://example.com/#foo/bar'), 'bar' |
41 | 41 | ) |
42 | 42 | }), |
43 | 43 | it('test8', async () => { |
44 | 44 | assert.equal( |
45 | | - shortName('http://example.com/foo#bar/baz'), 'baz' |
| 45 | + shortname('http://example.com/foo#bar/baz'), 'baz' |
46 | 46 | ) |
47 | 47 | }) |
48 | 48 | }) |
|
0 commit comments