How to use the ember-window-mock/-private/services/window function in ember-window-mock

To help you get started, we’ve selected a few ember-window-mock examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kaliber5 / ember-window-mock / addon / initializers / window-service.js View on Github external
export function initialize(application) {
  application.register('service:window', windowFactory(), { instantiate: false });
}

ember-window-mock

Wraps the global window object with a proxy that can be mocked in tests

MIT
Latest version published 4 months ago

Package Health Score

74 / 100
Full package analysis