Skip to content

Instantly share code, notes, and snippets.

@sbatson5
Last active November 4, 2019 21:08
Show Gist options
  • Save sbatson5/75b40b498c00a5c59b6d71daf2aa6add to your computer and use it in GitHub Desktop.
Save sbatson5/75b40b498c00a5c59b6d71daf2aa6add to your computer and use it in GitHub Desktop.
Simple fake firestore
class FakeFirestore {
collection(name) {
this.currentCollection = name;
return this;
}
where() {
return this;
}
add() {
return this;
}
get() {
// do some logic
// return the query
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment