Ejemplo n.º 1
0
 it('should load an id from a cookie', function () {
   cookie.set(cookieKey, 'id');
   group.load();
   assert('id' == group.id());
 });
Ejemplo n.º 2
0
 it('should load properties from local storage', function () {
   store.set(localStorageKey, { property: true });
   group.load();
   assert(equal({ property: true }, group.properties()));
 });
Ejemplo n.º 3
0
 it('should load an empty group', function () {
   group.load();
   assert(null === group.id());
   assert(equal({}, group.properties()));
 });