Sfoglia il codice sorgente

companion: fix test

Renée Kooi 6 anni fa
parent
commit
868b46e277
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      packages/@uppy/companion/test/__tests__/companion.js

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

@@ -89,7 +89,7 @@ describe('test authentication', () => {
     <head>
         <meta charset="utf-8" />
         <script>
-          window.opener.postMessage({token: "${token}"}, "http://localhost:3020")
+          window.opener.postMessage(JSON.stringify({token: "${token}"}), "http://localhost:3020")
           window.close()
         </script>
     </head>