Comparing version 1.3.0 to 1.4.0
@@ -10,4 +10,5 @@ | ||
require('./lib/on-disconnect')(Fireproof); | ||
require('./lib/fireproof-simple-login')(Fireproof); | ||
require('./lib/auth')(Fireproof); | ||
require('./lib/user')(Fireproof); | ||
module.exports = Fireproof; |
{ | ||
"name": "fireproof", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Promises for Firebase objects.", | ||
@@ -17,5 +17,5 @@ "main": "index.js", | ||
"devDependencies": { | ||
"firebase": "^1.0.19", | ||
"chai": "^1.9.1", | ||
"mocha": "^1.21.4", | ||
"firebase": "^1.2.0-beta.2", | ||
"chai": "^1.9.2", | ||
"mocha": "^1.21.5", | ||
"firebase-admin": "^2.0.1", | ||
@@ -22,0 +22,0 @@ "chai-as-promised": "^4.1.1", |
@@ -18,21 +18,7 @@ | ||
describe('#auth', function() { | ||
it('resolves on successful Firebase#auth', function() { | ||
return expect(fireproof.auth(firebaseAuthSecret)).to.be.fulfilled; | ||
}); | ||
it('rejects with error on unsuccessful Firebase#auth', function() { | ||
return expect(fireproof.auth('invalid')).to.be.rejected; | ||
}); | ||
}); | ||
// #unauth is untestable -- it just calls out to Firebase | ||
describe('#then', function() { | ||
before(function() { | ||
fireproof = new Fireproof(firebase); | ||
return fireproof.child('thentest').set(true); | ||
@@ -96,3 +82,3 @@ }); | ||
it('hands back the original Firebase reference', function() { | ||
expect(fireproof.toFirebase().constructor.name).to.equal('D'); | ||
expect(fireproof.toFirebase().constructor.name).to.equal('F'); | ||
}); | ||
@@ -99,0 +85,0 @@ |
@@ -84,10 +84,8 @@ | ||
didPush = (err === null); | ||
}) | ||
.then(function(obj) { | ||
console.log(obj); | ||
}); | ||
expect(newProof.constructor.name).to.equal('Fireproof'); | ||
var testPromise = Q.resolve() | ||
.then(function() { | ||
return newProof; | ||
}) | ||
var testPromise = Q.resolve(newProof) | ||
.delay(50) | ||
@@ -94,0 +92,0 @@ .then(function() { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43652
25
1208