jstests/change_streams/metadata_notifications.js
// the results specified by 'expected'.
the results specified by 'expected'.
the results specified by ' expected ' .
function assertResumeExpected({coll, spec, expected}) {
    const cursor = cst.startWatchingChanges({
        collection: coll,
        pipeline: [{$changeStream: spec}],
        aggregateOptions: {collation: {locale: "simple"}}
    });
    cst.assertNextChangesEqual({cursor: cursor, expectedChanges: expected});
}
function assertResumeExpected ( { coll , spec , expected } ) { const cursor = cst . startWatchingChanges ( { collection : coll , pipeline : [ { $changeStream : spec } ] , aggregateOptions : { collation : { locale : "simple" } } } ) ; cst . assertNextChangesEqual ( { cursor : cursor , expectedChanges : expected } ) ; }
the results specified by 'expected'.
the results specified by ' expected ' .