Skip to content

Instantly share code, notes, and snippets.

@kprakobkit kprakobkit/test.js

Created Feb 11, 2019
What would you like to do?
import request from "request-promise";
const assertEmailSent = async () => {
const response = await request("http://mountebank:2525/imposters/3014");
const emailsSent = JSON.parse(response).requests.filter(r => r.path === "/emails" && r.method === "POST");
assert.equal(, "");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.