machty / emblem.js

Emblem.js - Ember-friendly, indented syntax alternative for Handlebars.js
http://emblemjs.com
MIT License
1.04k stars 81 forks source link

Print a better message if assertion fails #210

Closed jimmay5469 closed 9 years ago

jimmay5469 commented 9 years ago

This changes the assertion failure message from: Expected "| test" to compile to "<span>test</span>" to:

compilesTo assertion failed:
  Emblem:   "| test"
  Expected: "<span>test</span>"
  Actual:   "<p>test</p>"

In the browser QUnit already displays this information but if you run the tests using npm test then this change can be rather helpful.

bantic commented 9 years ago

thanks!