Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run test has 2 failing #261

Open
Angelii opened this issue Apr 30, 2022 · 0 comments
Open

npm run test has 2 failing #261

Angelii opened this issue Apr 30, 2022 · 0 comments

Comments

@Angelii
Copy link

Angelii commented Apr 30, 2022

When I run the test, the console has reported an error:

  146 passing (803ms)
  2 failing

  1) Controller
       version warning [browser-only]
         should fire warning when out of date:
     Uncaught ReferenceError: window is not defined
      at Function.Dialog.warnOutOfDate (lib/dialog.js:73:21)
      at module.exports.Controller.checkOutOfDate (lib/controller.js:449:12)
      at module.exports.<anonymous> (test/controller.js:263:27)
      at module.exports.<anonymous> (lib/controller.js:349:16)
      at module.exports.BaseConnection.handleData (lib/connection/base.js:133:10)
      at module.exports.<anonymous> (test/helpers/common.js:28:18)
      at module.exports.BaseConnection.handleOpen (lib/connection/base.js:68:10)
      at Timeout._onTimeout (test/helpers/common.js:19:40)
      at listOnTimeout (internal/timers.js:557:17)
      at processTimers (internal/timers.js:500:7)

  2) Controller
       should show & hide [browser-only]:
     ReferenceError: Dialog is not defined
      at Context.<anonymous> (test/dialog.js:4:18)
      at processImmediate (internal/timers.js:464:21)

The question is:why is this window not defined?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant