How to use the ember-notify.View function in ember-notify

To help you get started, we’ve selected a few ember-notify 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 adopted-ember-addons / ember-notify / qunit.js View on Github external
import Notify from 'ember-notify';

var App;

// avoid slowing down the tests
Notify.View.reopen({
  closeAfter: 0,
  removeAfter: 0
});

module('ember-notify', {
  setup: function() {
    Ember.run(function() {
      App = Ember.Application.create({
        rootElement: '#ember-testing'
      });
      App.setupForTesting();
      App.injectTestHelpers();
    });
  },
  teardown: function() {
    App.reset();