Namespace: test  |  Firebase | Latest TMZ Celebrity News & Gossip | Watch TMZ Live

Namespace: test

Interface

Namespaces

Methods

cleanup

static

cleanup()

Complete clean up tasks.

makeChange

static

makeChange(before, after) returns Object

Make a Change object to be used as test data for Firestore and Realtime Database onWrite and onUpdate functions.

Parameter

before

Object

Snapshot before the write or update.

Value must not be null.

after

Object

Snapshot after the write or update.

Value must not be null.

Returns

non-null Object A Change object for testing.

mockConfig

static

mockConfig(config)

Mock values returned by functions.config().

Parameter

config

Object

Key value pairs representing the config to mock.

Value must not be null.

wrap

static

wrap(cloudFunction) returns test.WrappedFunction

Takes a function to be tested, and returns a WrappedFunction which can be called in test code.

Parameter

cloudFunction

Object

A CloudFunction is both an object that exports its trigger definitions at __trigger and can be called as a function using the JavaScript API for Google Cloud Functions.

Value must not be null.

Returns

non-null test.WrappedFunction 

WrappedFunction

static

WrappedFunction(data, options)

A function type that can be called with test data and optional override values for the event context. It will subsequently invoke the function it wraps with the provided test data and a generated event context.

Parameter

data

any type

The test data.

Value must not be null.

options

Object

Override values for event context as an EventContextOptions object.

Value may be null.

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.