zeroclickinfo-goodies/t/UPS.t

27 lines
948 B
Perl
Raw Normal View History

2013-03-08 12:47:04 -08:00
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => 'ups';
zci is_cached => 1;
ddg_goodie_test(
[qw( DDG::Goodie::UPS )],
'1Z0884XV0399906189' => test_zci(
"1Z0884XV0399906189",
heading => 'UPS Shipment Tracking',
html => qq(Track this shipment at <a href="http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=en_US&InquiryNumber1=1Z0884XV0399906189&track.x=0&track.y=0">UPS</a>.)
),
'ups 1Z0884XV0399906189' => test_zci(
"1Z0884XV0399906189",
heading => 'UPS Shipment Tracking',
html => qq(Track this shipment at <a href="http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=en_US&InquiryNumber1=1Z0884XV0399906189&track.x=0&track.y=0">UPS</a>.)
),
);
done_testing;