finos / FDC3

An open standard for the financial desktop.
https://fdc3.finos.org
Other
187 stars 109 forks source link

addEventListener test failing in main #1235

Closed kriswest closed 3 days ago

kriswest commented 3 days ago

The addEventListener test added in in #1207 is failing:

 ● test ES6 module › without `window.fdc3` global › addEventListener should reject

    TypeError: (0 , src_1.addEventListener) is not a function

      101 |
      102 |     test('addEventListener should reject', async () => {
    > 103 |       await expect(addEventListener(expect.any(String), expect.any(Object))).rejects.toEqual(UnavailableError);
          |                                    ^
      104 |     });
      105 |
      106 |     test('joinChannel should reject', async () => {

      at test/Methods.test.ts:103:36
      at node_modules/tslib/tslib.js:169:75
      at Object.__awaiter (node_modules/tslib/tslib.js:165:16)
      at Object.<anonymous> (test/Methods.test.ts:102:55)

Test Suites: 1 failed, 2 passed, 3 total
Tests:       1 failed, 54 passed, 55 total