Skip to content

Instantly share code, notes, and snippets.

@skizzybiz
Created April 19, 2011 19:56
Show Gist options
  • Save skizzybiz/929452 to your computer and use it in GitHub Desktop.
Save skizzybiz/929452 to your computer and use it in GitHub Desktop.
broken SproutCore unit test
// This works:
module("MessageTracer.WhitelistEntry");
test("test description", function() {
var expected, result;
expected = "test";
result = "test";
return equals(result, expected, "test should equal test");
});
// This does not:
(function() {
module("MessageTracer.WhitelistEntry");
test("test description", function() {
var expected, result;
expected = "test";
result = "test";
return equals(result, expected, "test should equal test");
});
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment