M
M
mixerstyle2018-09-27 12:55:25
JavaScript
mixerstyle, 2018-09-27 12:55:25

Uncaught The email address is already in use by another account?

I'm trying to test a function that fetches data from firebase. I am using Chai + Mocha for testing purposes. But I get an error when I start testing: "Uncaught The email address is already in use by another account". In firebase console, authorization is allowed. The data that the function needs returns
The function I'm trying to test:

funka
const getDbSnapshot = () => {
    return firebase.database().ref().once('value');
};

And the code I'm actually testing:
Test
describe('getDbSnapshot', () => {
    it('Should be not empty and with appropreate fields', (done) => {
        getDbSnapshot().then((res) => {
            const snapshot = JSON.parse(JSON.stringify(res));

            assert.exists(snapshot, 'Snapshot does not exist');
            assert.exists(snapshot.clients, 'Clients does not exist');
            assert.exists(snapshot.partners, 'Partners does not exist');
            done();
        });
    });
});
Plus a screenshot of the entire error in the console
5baca8fd02d00289928580.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question