TestHelpers

TestHelpers

Source:

Helper functions for use in Jest tests

Methods

(static) getFakeMongoCursor(collectionName, results, options) → {Object}

Source:
Parameters:
Name Type Description
collectionName String

name of the collection

results Any

results to be returned as part of the cursor

options Object

options to pass to the query

Returns:

fake cursor

Type
Object

(static) getFakeMongoCursor(collectionName, results, options) → {Object}

Source:
Parameters:
Name Type Description
collectionName String

name of the collection

results Any

results to be returned as part of the cursor

options Object

options to pass to the query

Returns:

fake cursor

Type
Object

TestHelpers

Source:

Helper functions for use in Jest tests

Methods

(static) getFakeMongoCursor(collectionName, results, options) → {Object}

Source:
Parameters:
Name Type Description
collectionName String

name of the collection

results Any

results to be returned as part of the cursor

options Object

options to pass to the query

Returns:

fake cursor

Type
Object

(static) getFakeMongoCursor(collectionName, results, options) → {Object}

Source:
Parameters:
Name Type Description
collectionName String

name of the collection

results Any

results to be returned as part of the cursor

options Object

options to pass to the query

Returns:

fake cursor

Type
Object

TestHelpers

Methods

(static) getFakeMongoCursor(collectionName, results, options) → {Object}

Source:
Parameters:
Name Type Description
collectionName String

name of the collection

results Any

results to be returned as part of the cursor

options Object

options to pass to the query

Returns:

fake cursor

Type
Object

(static) getFakeMongoCursor(collectionName, results, options) → {Object}

Source:
Parameters:
Name Type Description
collectionName String

name of the collection

results Any

results to be returned as part of the cursor

options Object

options to pass to the query

Returns:

fake cursor

Type
Object