]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
test: fix mocking
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 13 Nov 2020 16:35:09 +0000 (17:35 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 13 Nov 2020 16:35:09 +0000 (17:35 +0100)
__tests__/urlEncoding.spec.ts

index c4663b2730c9611f9c759390e071e2a7c3dc09fe..5c34f0bc6869ad3de8a38823958e1d53284b9a53 100644 (file)
@@ -29,6 +29,8 @@ describe('URL Encoding', () => {
       const value = encoding[key]
       // @ts-ignore
       if (typeof value === 'function') encoding[key] = jest.fn((v: string) => v)
+      // @ts-ignore
+      else if (key === 'PLUS_RE') encoding[key] = /\+/g
     }
   })