Skip to content

Wishlist: Have fakeServer record requests #1237

@tarjei

Description

@tarjei

It would be great if Sinon fakeServer stored incoming so that it would be possible to do assertions against them.

  • Sinon version : 0.17.6
  • Environment : Browsers
  • Example URL : n.a.
  • Other libraries you are using: n.a.

What did you expect to happen?
// run test

expect(server.requests).to.have.length(0)

expect(server.requests[0].url).to.eql("xxx")

What actually happens

There is no server.requests!

Kind regards,
Tarjei

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions