mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
Disabled failing tests until I can figure out how to force moment to use a specific timezone and not the timezone on the system.
This commit is contained in:
parent
69960db807
commit
1df52ddf25
@ -11,7 +11,13 @@ describe('Filter: formatEpoch', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('should convert epoch to datetime string', function(){
|
||||
// TODO: this test is opinionated - it assumes that the
|
||||
// system date on the machine that's running it is EST.
|
||||
// I'm not quite sure how to foce a moment to use a specific
|
||||
// timezone. If we can figure that out then we can re-enable
|
||||
// these tests.
|
||||
|
||||
xit('should convert epoch to datetime string', function(){
|
||||
expect(filter(11111)).toBe("Dec 31, 1969 10:05 PM");
|
||||
expect(filter(610430400)).toBe("May 6, 1989 12:00 AM");
|
||||
});
|
||||
|
||||
@ -11,7 +11,13 @@ describe('Filter: longDate', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('should convert the timestamp to a UI friendly date and time', function(){
|
||||
// TODO: this test is opinionated - it assumes that the
|
||||
// system date on the machine that's running it is EST.
|
||||
// I'm not quite sure how to foce a moment to use a specific
|
||||
// timezone. If we can figure that out then we can re-enable
|
||||
// these tests.
|
||||
|
||||
xit('should convert the timestamp to a UI friendly date and time', function(){
|
||||
expect(filter("2017-02-13T22:00:14.106Z")).toBe("2/13/2017 5:00:14 PM");
|
||||
});
|
||||
it('should return an empty string if no timestamp is passed', function(){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user