Browse Source

debug: make tests pass

ifedapoolarewaju 5 years ago
parent
commit
a54274f645
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/@uppy/companion/test/__tests__/companion.js

+ 1 - 1
packages/@uppy/companion/test/__tests__/companion.js

@@ -98,7 +98,7 @@ describe('test authentication', () => {
       .expect(200)
       .expect((res) => {
         const authToken = res.header['set-cookie'][0].split(';')[0].split('uppyAuthToken--google=')[1]
-        expect(authToken).toEqual(token)
+        expect(decodeURIComponent(authToken)).toEqual(token)
         const body = `
     <!DOCTYPE html>
     <html>