Pārlūkot izejas kodu

attempt to fix broken test on IE (#2839)

Mikael Finstad 4 gadi atpakaļ
vecāks
revīzija
b5a7fce076
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      test/endtoend/typescript/test.js

+ 3 - 1
test/endtoend/typescript/test.js

@@ -8,7 +8,9 @@ describe('Project compiled with Uppy\'s TypeScript typings', () => {
     await root.waitForExist()
     await trigger.click()
 
-    const typeofUppy = await browser.execute(() => {
+    // IE doesn't support arrow functions
+    // eslint-disable-next-line prefer-arrow-callback,func-names
+    const typeofUppy = await browser.execute(function () {
       return typeof window.uppy
     })
     // It was initialized correctly