seeInCollection

Verifies that the given key and optional value exists in the framework request collection.

Arguments

Name Type Required Default Description
key string true The key to find in the collection.
value string false The value to find in the collection with the given key. If omitted, only checks if the key exists.
private boolean false false If true, use the private collection instead of the default collection.

Examples

it( "can verify that keys and values are in the framework collection", function() {
    this.visit( "/" )
        .seeInCollection( "error" )
        .seeInCollection( "email", "scotty@uss.enterprise" );
        .seeInCollection( key = "secret", private = true );
} );