ember-cli-101-errata
ember-cli-101-errata copied to clipboard
Default Unit Test fails for formatDate()
After replacing the contents of app/utils/date-helpers.js as instructed on page 80, the unit test begins to fail. Changing the unit test to reference the new function name resolves the problem:
import {formatDate} from 'borrowers/utils/date-helpers';
module('formatDate');
// Replace this with your real tests.
test('it works', function() {
var result = formatDate();
ok(result);
});
Might be nice to at least mention in the book that the test will fail and not to worry about it until the test chapter, because for a while I was worried I had a typo or something wasn't set up correctly.