Skip to content

Commit

Permalink
Release v1.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
soumak77 committed Aug 6, 2017
1 parent 4d1d399 commit 8d82076
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 18 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "firebase-mock",
"version": "1.1.4",
"version": "1.1.5",
"homepage": "https://github.com/soumak77/firebase-mock",
"authors": [
"Kato"
Expand Down
66 changes: 50 additions & 16 deletions browser/firebasemock.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** firebase-mock - v1.1.4
/** firebase-mock - v1.1.5
https://github.com/soumak77/firebase-mock
* Copyright (c) 2016 Brian Soumakian
* License: MIT */
Expand Down Expand Up @@ -18336,27 +18336,61 @@ exports.Event = FlushEvent;
},{"events":3,"lodash":13,"util":7}],21:[function(require,module,exports){
var MockFirebase = require('./firebase');

var EmailAuthProvider = function() {
this.providerId = EmailAuthProvider.PROVIDER_ID;
};
EmailAuthProvider.PROVIDER_ID = "password";
EmailAuthProvider.credential = function() {
return new AuthCredential(EmailAuthProvider.PROVIDER_ID);
};

var GoogleAuthProvider = function() {
this.providerId = GoogleAuthProvider.PROVIDER_ID;
};
GoogleAuthProvider.PROVIDER_ID = "google.com";
GoogleAuthProvider.credential = function() {
return new AuthCredential(GoogleAuthProvider.PROVIDER_ID);
};

var TwitterAuthProvider = function() {
this.providerId = TwitterAuthProvider.PROVIDER_ID;
};
TwitterAuthProvider.PROVIDER_ID = "twitter.com";
TwitterAuthProvider.credential = function() {
return new AuthCredential(TwitterAuthProvider.PROVIDER_ID);
};

var FacebookAuthProvider = function() {
this.providerId = FacebookAuthProvider.PROVIDER_ID;
};
FacebookAuthProvider.PROVIDER_ID = "facebook.com";
FacebookAuthProvider.credential = function() {
return new AuthCredential(FacebookAuthProvider.PROVIDER_ID);
};

var GithubAuthProvider = function() {
this.providerId = GithubAuthProvider.PROVIDER_ID;
};
GithubAuthProvider.PROVIDER_ID = "github.com";
GithubAuthProvider.credential = function() {
return new AuthCredential(GithubAuthProvider.PROVIDER_ID);
};

var AuthCredential = function(provider) {
this.providerId = provider;
};

function MockFirebaseSdk(createDatabase, createAuth) {
function MockFirebaseAuth() {
var auth = createAuth ? createAuth() : new MockFirebase();
delete auth.ref;
return auth;
}
MockFirebaseAuth.EmailAuthProvider = function() {
this.providerId = "password";
};
MockFirebaseAuth.GoogleAuthProvider = function() {
this.providerId = "google.com";
};
MockFirebaseAuth.TwitterAuthProvider = function() {
this.providerId = "twitter.com";
};
MockFirebaseAuth.FacebookAuthProvider = function() {
this.providerId = "facebook.com";
};
MockFirebaseAuth.GithubAuthProvider = function() {
this.providerId = "github.com";
};
MockFirebaseAuth.EmailAuthProvider = EmailAuthProvider;
MockFirebaseAuth.GoogleAuthProvider = GoogleAuthProvider;
MockFirebaseAuth.TwitterAuthProvider = TwitterAuthProvider;
MockFirebaseAuth.FacebookAuthProvider = FacebookAuthProvider;
MockFirebaseAuth.GithubAuthProvider = GithubAuthProvider;

function MockFirebaseDatabase() {
return {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "firebase-mock",
"version": "1.1.4",
"version": "1.1.5",
"description": "Firebase mock library for writing unit tests",
"main": "./src",
"scripts": {
Expand Down

0 comments on commit 8d82076

Please sign in to comment.