Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test.js « require « src « test « jquery.browser « node_modules - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 596b11495c9e810f27437b923758c5eb1d0eac60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Emulate the browser
global.window = {
  navigator: {
    userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.45 Safari/537.36'
  }
};

var browser = require('../jquery.browser.js');

var should = require('chai').should();

describe('require jQuery browser', function() {
  it('should have the correct properties for a Chrome browser on a Mac', function(done) {
    browser.webkit.should.be.ok;
    browser.mac.should.be.ok;
    browser.desktop.should.be.ok;

    done();
  });
})