소스 검색

Add more test cases.

PatrickNausha 4 년 전
부모
커밋
b3fc0e8a1d
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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' );