www.reboot.components.bower_components.pikaday-time.tests.module.js Maven / Gradle / Ivy
The newest version!
var Pikaday = require('../'),
expect = require('expect.js');
describe('Pikaday', function ()
{
'use strict';
it('should expose as a CommonJS module', function ()
{
expect(Pikaday).to.be.a('function');
});
it('should NOT leak to the global object', function ()
{
expect(window).to.not.have.property('Pikaday');
});
it('should be possible to create a new instance', function ()
{
expect(function () {
new Pikaday();
}).to.not.throwException();
});
});