milestones test

This commit is contained in:
Radek Stepan 2016-01-21 12:10:45 +01:00
parent 557d08c6e7
commit 3ee5999bc4
1 changed files with 13 additions and 0 deletions

13
test/milestones.js Normal file
View File

@ -0,0 +1,13 @@
import { assert } from 'chai';
import moment from 'moment';
import json from './fixtures/milestones.json';
export default {
'milestones - time format': (done) => {
// ISO 8601 dates are in UTC timezone.
let utc = moment(json[0].created_at).toDate().toUTCString();
assert(utc, 'Sun, 10 Apr 2011 20:09:31 GMT');
done();
}
};