Exemple #1
0
  hooks.beforeEach(function() {
    Orbit.Promise = Ember.RSVP.Promise;

    const models = { planet: Planet, moon: Moon, star: Star };
    store = createStore({ models });
    schema = store.get('schema');
  });
Exemple #2
0
  hooks.beforeEach(function() {

    // this shouldn't be necessary, however for some reason Orbit.Promise is set to
    // null at a seemingly random point through the cache tests (usually it occurs after 3-5 tests)
    Orbit.Promise = Ember.RSVP.Promise;

    const models = { planet: Planet, moon: Moon, star: Star };
    store = createStore({ models });
    cache = store.get('cache');
  });
Exemple #3
0
 hooks.beforeEach(function() {
   store = createStore({ models });
 });
Exemple #4
0
 hooks.beforeEach(function() {
   const models = { planet: Planet, moon: Moon, star: Star };
   store = createStore({ models });
 });