Quellcode durchsuchen

attempt to fix broken test on IE (#2839)

Mikael Finstad vor 4 Jahren
Ursprung
Commit
b5a7fce076
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  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