Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Cleaning up test failure message formatting #153

Merged
merged 1 commit into from

2 participants

@matt-richardson

Cleaning up test failure message formatting and also fixing a typo (peaking should be peeking).

@matt-richardson matt-richardson Cleaning up test failure messages
Cleaning up test failure messages and also fixing a typo (peaking should
be peeking)
59888dd
@addyosmani addyosmani merged commit 1bcab8a into from
@addyosmani
Owner

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 8, 2012
  1. @matt-richardson

    Cleaning up test failure messages

    matt-richardson authored
    Cleaning up test failure messages and also fixing a typo (peaking should
    be peeking)
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 3 deletions.
  1. +4 −3 index.md
View
7 index.md
@@ -4684,7 +4684,7 @@ Once these specs are run, only the second one ('produces the correct HTML') fail
The second spec fails with the following message:
-Expected '' to contain ```'<label class="todo-content">My Todo</label>'```.
+```Expected '' to contain '<label class="todo-content">My Todo</label>'.```
The reason for this is the default behavior for render() doesn't create any markup. Let's write a replacement for render() which fixes this:
@@ -4779,8 +4779,9 @@ describe("When a todo is done", function() {
This will fail with the following message:
-Expected '<label class="todo-content">My Todo</label>'
+```Expected '<label class="todo-content">My Todo</label>'
to have class 'done'.
+```
which can be fixed in the existing render() method as follows:
@@ -4881,7 +4882,7 @@ James Newbery was kind enough to help me with writing the Views section above an
##Exercise
-As an exercise, I recommend now trying the Jasmine Koans in `practicals\jasmine-joans` and trying to fix some of the purposefully failing tests it has to offer. This is an excellent way of not just learning how Jasmine specs and suites work, but working through the examples (without peaking back) will also put your Backbone skills to test too.
+As an exercise, I recommend now trying the Jasmine Koans in `practicals\jasmine-joans` and trying to fix some of the purposefully failing tests it has to offer. This is an excellent way of not just learning how Jasmine specs and suites work, but working through the examples (without peeking back) will also put your Backbone skills to test too.
##Further reading
Something went wrong with that request. Please try again.