summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/helpers/browser.spec.js
blob: 5b740da827ba550a2771b8b8ead8091eccfa769a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
define(['helpers/browser'], function (browser) {
  'use strict';

    describe('browser ', function() {
      it('gets cookie', function() {
        document.cookie = 'TWISTED_SESSION=ff895ffc45a4ce140bfc5dda6c61d232; i18next=en-us';
        expect(browser.getCookie('TWISTED_SESSION')).toEqual('ff895ffc45a4ce140bfc5dda6c61d232');
        expect(browser.getCookie('i18next')).toEqual('en-us');
      });

    });
});