Skip to content

Create a once-off method #5

Open

Description

@ponelat

Sometimes I just want to catch one or two requests.

I'd like to do that without any setup, perhaps like...

it("should do something", function(done) {
  var xmock = require('xmock')
  // No magical capturing has occurred yet
  xmock.getOnce(...) // will release mitm after it returns
})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions