Browse Source

Fix url test

Steven Silvester 8 years ago
parent
commit
b419f14526
1 changed files with 3 additions and 1 deletions
  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);