瀏覽代碼

Fix url test

Steven Silvester 8 年之前
父節點
當前提交
b419f14526
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      test/src/coreutils/url.spec.ts

+ 3 - 1
test/src/coreutils/url.spec.ts

@@ -29,7 +29,9 @@ describe('@jupyterlab/coreutils', () => {
         let url = 'http://example.com/path?that\'s#all, folks';
         let obj = URLExt.parse(url);
         try {
-          expect(obj.href).to.equal(url.replace(' ', '%20'));
+          expect(obj.href).to.equal(
+            'http://example.com/path?that%27s#all,%20folks'
+          );
         } catch (e) {
           // Chrome
           expect(obj.href).to.equal(url);