Sha256: 73de76b6acc1adf92a6f51c9d5970847aa273783a6164db5894eb2df586f9c7c

Contents?: true

Size: 548 Bytes

Versions: 2

Compression:

Stored size: 548 Bytes

Contents

// 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();
  });
})

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_modular_admin-1.0.0 app/assets/node_modules/jquery.browser/test/src/require/test.js
rails_modular_admin-0.4.0 app/assets/node_modules/jquery.browser/test/src/require/test.js