abuiles / ember-cli-101-errata

18 stars 4 forks source link

date-helpers-test failing #173

Closed stgallagher closed 9 years ago

stgallagher commented 9 years ago

I needed to make the following changes to the test code in tests/unit/utils/date-helpers-test.js:

import { module, test } from 'ember-qunit';
import Ember from 'ember';
import dateHelpers from '../../../utils/date-helpers';

module('Utils: formatDate');

test('formats a date object', function(assert) {
  var date = new Date("11-3-2015");
  var result = dateHelpers.formatDate(date, 'ddd MMM DD YYYY');

  assert.equal(result, 'Mon Nov 03 2014', 'returns a readable string');
});

I needed to:

abuiles commented 9 years ago

thanks!

I've fixed all the tests to match the new format, it will be available in today release.

Also I released a tool recently to help you upgrade your tests :) http://blog.abuiles.com/blog/2015/02/25/upgrading-your-ember-cli-qunit-tests-in-less-than-5-minutes/