From 53b36a1aad554e14ed69674643e75aa56346882d Mon Sep 17 00:00:00 2001 From: gianantoniopini <63844628+gianantoniopini@users.noreply.github.com> Date: Wed, 23 Dec 2020 16:23:13 +0100 Subject: [PATCH] FirebaseStub: cleanup --- __mocks__/gatsby-plugin-firebase.js | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/__mocks__/gatsby-plugin-firebase.js b/__mocks__/gatsby-plugin-firebase.js index b5217bf3..bde30fd8 100644 --- a/__mocks__/gatsby-plugin-firebase.js +++ b/__mocks__/gatsby-plugin-firebase.js @@ -220,31 +220,9 @@ class Reference { return Promise.resolve(true); } - /* - const update = async (value) => { - if (resumesPath) { - if (value === null) { - delete __resumesDictionary[databaseLocationId]; - } else { - __resumesDictionary[databaseLocationId] = value; - } - } - + async set(value) { return Promise.resolve(true); - }; - - const set = (value) => { - if (resumesPath) { - if (value === null) { - delete __resumesDictionary[databaseLocationId]; - } else { - __resumesDictionary[databaseLocationId] = value; - } - } - - return Promise.resolve(true); - }; - */ + } } class DataSnapshot {