firebase / firebase-functions-test

MIT License
232 stars 48 forks source link

Failing test case for firebase/firebase-functions#926 #116

Open rhodgkins opened 3 years ago

rhodgkins commented 3 years ago

Description

See firebase/firebase-functions#926

Will be fixed once that is merged in and the firebase-function dependency updated.

Code sample

See test case

  it('should allow null child value in makeDataSnapshot', async () => {
    const snapshot = makeDataSnapshot({ foo: null }, 'path');

    expect(snapshot.exists()).be.false;
    expect(snapshot.val()).to.deep.equal(null);
    expect(snapshot.ref.key).to.equal('path');
  });
rhodgkins commented 2 years ago

Frustratingly the required changes to fix this have been pushed back to v4 of firebase-functions.