Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds cookie attribute assertions (fixes #259) #261

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Commits on Nov 4, 2019

  1. feat: add inline cookie attributes assertion

    Adds the possibility to assert cookie attributes with the following
    syntax:
    
    ```
    expect(res).to.have.cookie('key', 'value', {
      'AttrOne': 'value-one',
      'AttrTwo': 'value-two',
      // ...
    });
    ```
    schrodervictor committed Nov 4, 2019
    Configuration menu
    Copy the full SHA
    b7f0cca View commit details
    Browse the repository at this point in the history
  2. changes the assertion context after #cookie

    When using .cookie(key, val, attributes), the assertion context will
    change from the original object to the cookie itself, in order to allow
    readable chained assertions about the cookie properties.
    schrodervictor committed Nov 4, 2019
    Configuration menu
    Copy the full SHA
    16191fc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    65b51a6 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2019

  1. Configuration menu
    Copy the full SHA
    fb35aa0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6bf5fb2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4d9513e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    82165cc View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2019

  1. Configuration menu
    Copy the full SHA
    15c6765 View commit details
    Browse the repository at this point in the history
  2. updates README

    schrodervictor committed Nov 6, 2019
    Configuration menu
    Copy the full SHA
    7bb65d6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e4fabba View commit details
    Browse the repository at this point in the history