Initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
var torque = require('../../src/cartodb.mod.torque');
|
||||
|
||||
describe('torque', function () {
|
||||
it('should set a window.torque object', function () {
|
||||
expect(torque).toBeDefined();
|
||||
expect(window.torque).toBe(torque);
|
||||
});
|
||||
|
||||
it('should modify the window.cartodb object', function () {
|
||||
expect(window.cartodb).toEqual(jasmine.any(Object));
|
||||
|
||||
var cdb = window.cartodb;
|
||||
expect(cdb.geo).toEqual(jasmine.any(Object));
|
||||
|
||||
expect(cdb.geo.GMapsTorqueLayerView).toEqual(jasmine.any(Function));
|
||||
expect(cdb.geo.LeafletTorqueLayer).toEqual(jasmine.any(Function));
|
||||
|
||||
expect(cdb.geo.ui).toEqual(jasmine.any(Object));
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user