Prechádzať zdrojové kódy

attempt to fix broken test on IE (#2839)

Mikael Finstad 4 rokov pred
rodič
commit
b5a7fce076
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  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