Browse Source

Add more test cases.

PatrickNausha 4 years ago
parent
commit
b3fc0e8a1d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      test/urlExtension.test.js

+ 2 - 0
test/urlExtension.test.js

@@ -10,8 +10,10 @@ describe( 'getUrlExtension', () => {
 		'https://nasa.gov//tileset.json',
 		'file:///Users/JaneScientist/code/3DTilesRendererJS/example/b3dmExample.json',
 		'foo.json',
+		'/foo/bar.json',
 		'foo.json?a=b',
 		'/foo.json',
+		'/foo/bar.json',
 	] )( 'parses the json extension out of %s', url => {
 
 		expect( getUrlExtension( url ) ).toBe( 'json' );