Skip to content

Instantly share code, notes, and snippets.

@baudehlo
Created November 9, 2011 14:35
Show Gist options
  • Save baudehlo/1351607 to your computer and use it in GitHub Desktop.
Save baudehlo/1351607 to your computer and use it in GitHub Desktop.
tion(t) {
var transaction = createTransaction(postfixText);
var body = transaction.body;
t.equal(body.header.get_decoded("subject"), subjectText, "Check subject");
t.ok(body.bodytext, "Should have bodytext");
t.ok(body.bodytext.indexOf(wordForCheck) != -1, "Check word in body");
t.end();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment