Skip to content

Instantly share code, notes, and snippets.

@MrCoder
Created December 28, 2017 01:37
Show Gist options
  • Save MrCoder/61841f92dbd85e0af81ae6786b4091bd to your computer and use it in GitHub Desktop.
Save MrCoder/61841f92dbd85e0af81ae6786b4091bd to your computer and use it in GitHub Desktop.
var mockServerClient = require('mockserver-client').mockServerClient;
mockServerClient("localhost", 1080)
.mockAnyResponse({
"httpRequest": { "method": "GET", "path": "/status" },
"httpResponse": { "statusCode" : 200, "body": "{\"status\": \"OK\"}" } }
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment