Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 3
    Export the code you have there to a module, test the module instead. Having random code in a random document.ready is not a very testable design to begin with. Commented Jul 10, 2013 at 20:08
  • I hate it when people make references to the test itself in jasmine identifiers. You're not describing the test suite, you're describing the system! And the thing you're describing doesn't test an alert box, it creates one. Commented Nov 30, 2013 at 18:19