diff --git a/package.json b/package.json index 2da174d..8029c85 100644 --- a/package.json +++ b/package.json @@ -33,32 +33,32 @@ "firebase": "2.0.x" }, "devDependencies": { - "chai-backbone": "~0.9.2", - "coveralls": "^2.11.1", - "grunt": "~0.4.1", - "grunt-cli": "0.1.13", - "grunt-contrib-concat": "^0.5.0", - "grunt-contrib-jshint": "~0.6.2", - "grunt-contrib-uglify": "~0.2.2", - "grunt-contrib-watch": "~0.5.1", - "grunt-karma": "^0.8.3", - "grunt-notify": "~0.2.7", - "istanbul": "^0.3.2", - "karma": "~0.12.8", - "karma-chai": "0.0.2", - "karma-coverage": "^0.2.6", - "karma-failed-reporter": "0.0.2", - "karma-mocha": "~0.1.0", - "karma-phantomjs-launcher": "~0.1.0", - "karma-requirejs": "~0.2.0", - "karma-sinon": "~1.0.0", - "karma-spec-reporter": "0.0.13", - "mocha": "~1.14.0", - "requirejs": "~2.1.9", - "karma-chrome-launcher": "^0.1.4", - "grunt-copy": "^0.1.0", - "grunt-contrib-connect": "^0.9.0", - "grunt-serve": "^0.1.6" + "chai-backbone" : "~0.9.2", + "coveralls" : "^2.11.1", + "grunt" : "~0.4.1", + "grunt-cli" : "0.1.13", + "grunt-contrib-concat" : "^0.5.0", + "grunt-contrib-jshint" : "~0.6.2", + "grunt-contrib-uglify" : "~0.2.2", + "grunt-contrib-watch" : "~0.5.1", + "grunt-karma" : "^0.8.3", + "grunt-notify" : "~0.2.7", + "istanbul" : "^0.3.2", + "karma" : "~0.12.8", + "karma-chai" : "0.0.2", + "karma-coverage" : "^0.2.6", + "karma-failed-reporter" : "0.0.2", + "karma-mocha" : "~0.1.0", + "karma-phantomjs-launcher" : "~0.1.0", + "karma-requirejs" : "~0.2.0", + "karma-sinon" : "~1.0.0", + "karma-spec-reporter" : "0.0.13", + "mocha" : "~1.14.0", + "requirejs" : "~2.1.9", + "karma-chrome-launcher" : "^0.1.4", + "grunt-copy" : "^0.1.0", + "grunt-contrib-connect" : "^0.9.0", + "grunt-serve" : "^0.1.6" }, "scripts": { "test": "grunt test", diff --git a/test/specs/umd_test.js b/test/specs/umd_test.js new file mode 100644 index 0000000..86cdb33 --- /dev/null +++ b/test/specs/umd_test.js @@ -0,0 +1,30 @@ +describe('Backbone.Firebase', function() { + + it('should exist', function() { + return expect(Backbone.Firebase).to.be.ok; + }); + + describe('UMD wrapper tests', function() { + + it('AMD', function() { + expect( true ).to.be.true; + define = function () {}; + define.amd = {}; + expect(typeof define === 'function' + && define.amd != null).to.be.true; + }); + + it('Common', function() { + module = {}; + module.exports = {}; + expect(typeof module === 'object' + && typeof module.exports === 'object').to.be.true; + }); + + it('gobal', function() { + Firebase = {}; + expect( typeof Firebase === 'object' ).to.be.true; + }); + + }); +});