Browse Source

test the case of inner template

Shaun 1 năm trước cách đây
mục cha
commit
a99a551052
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      tests/url.test.js

+ 2 - 0
tests/url.test.js

@@ -103,6 +103,8 @@ describe('URL', () => {
       expect(RouterURL.resolveTemplatePath(pathname, '../a.html')).toStrictEqual('/a.html')
       expect(RouterURL.resolveTemplatePath(pathname, '../../a.html')).toStrictEqual('/a.html')
       expect(RouterURL.resolveTemplatePath(pathname, '../../../a.html')).toStrictEqual('/a.html')
+
+      expect(RouterURL.resolveTemplatePath(pathname)).toStrictEqual()
     })
   })
 })