Skip to content
This repository has been archived by the owner on Aug 25, 2018. It is now read-only.

Added UMD tests #151

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 26 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
30 changes: 30 additions & 0 deletions test/specs/umd_test.js
Original file line number Diff line number Diff line change
@@ -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;
});

});
});