test(common): skip some DatePipe tests in old Chrome where Intl is buggy (#15784)

This commit is contained in:
Marc Laval 2017-08-03 00:51:59 +02:00 committed by Victor Berchet
parent 5cc9913ded
commit 4d117faf1a
1 changed files with 6 additions and 3 deletions

View File

@ -124,9 +124,12 @@ export function main() {
expectDateFormatAs(date, pattern, dateFixtures[pattern]);
});
Object.keys(isoStringWithoutTimeFixtures).forEach((pattern: string) => {
expectDateFormatAs(isoStringWithoutTime, pattern, isoStringWithoutTimeFixtures[pattern]);
});
if (!browserDetection.isOldChrome) {
Object.keys(isoStringWithoutTimeFixtures).forEach((pattern: string) => {
expectDateFormatAs(
isoStringWithoutTime, pattern, isoStringWithoutTimeFixtures[pattern]);
});
}
expect(pipe.transform(date, 'Z')).toBeDefined();
});