Update tests to correct timezone
Using EST for tests - the times were given in UTC.master
parent
60a371dea8
commit
18cca0e45d
|
@ -5,10 +5,12 @@ use warnings;
|
||||||
use Test::More;
|
use Test::More;
|
||||||
use DDG::Test::Goodie;
|
use DDG::Test::Goodie;
|
||||||
use utf8;
|
use utf8;
|
||||||
|
use Test::MockTime qw(set_fixed_time);
|
||||||
|
|
||||||
zci answer_type => 'sun_info';
|
zci answer_type => 'sun_info';
|
||||||
zci is_cached => 0;
|
zci is_cached => 0;
|
||||||
|
|
||||||
|
set_fixed_time('2014-08-01T00:00:00Z');
|
||||||
# Presume sun will rise in the morning and set at night year round in PA.
|
# Presume sun will rise in the morning and set at night year round in PA.
|
||||||
my @now = (qr/^On.*Phoenixville, Pennsylvania.*AM.*PM\.$/,
|
my @now = (qr/^On.*Phoenixville, Pennsylvania.*AM.*PM\.$/,
|
||||||
structured_answer => {
|
structured_answer => {
|
||||||
|
|
Loading…
Reference in New Issue