ember-cli-101-errata icon indicating copy to clipboard operation
ember-cli-101-errata copied to clipboard

Default Unit Test fails for formatDate()

Open IanVS opened this issue 10 years ago • 0 comments

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.

IanVS avatar Jan 24 '15 19:01 IanVS