Beispiel #1
0
 it('add new experiment to the cookie', function() {
   cookie.remove(vkey);
   var expt = assignExpt([{
     id: '1',
     name: 'Foo'
   }]);
   expect(expt.id).toBe('1');
   expect(cookie.get(vkey)).toBe('1');
 });
Beispiel #2
0
 it('forces existing experiment and adds it to the cookie', function() {
   cookie.remove(vkey);
   var expt = assignExpt([{
     id: '1',
     name: 'Foo'
   }], {href:'http://domain.com?abo.x=[1]'});
   expect(expt.id).toBe('1');
   expect(cookie.get(vkey)).toBe('1');
 });
Beispiel #3
0
 beforeEach(function() {
   cookie.remove(COOKIE_KEY);
 });