firebase-functions-test icon indicating copy to clipboard operation
firebase-functions-test copied to clipboard

Failing test case for firebase/firebase-functions#926

Open rhodgkins opened this issue 4 years ago • 1 comments
trafficstars

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 avatar Aug 13 '21 09:08 rhodgkins

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

rhodgkins avatar Aug 09 '22 16:08 rhodgkins