mirror of
https://github.com/status-im/burnchart.git
synced 2025-02-11 01:46:24 +00:00
14 lines
345 B
JavaScript
14 lines
345 B
JavaScript
|
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();
|
||
|
}
|
||
|
};
|