Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Commit

Permalink
fix: properly restore locale after test
Browse files Browse the repository at this point in the history
Closes #708
  • Loading branch information
technohippy authored and mhevery committed Mar 13, 2014
1 parent 574065f commit f16536e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/filter/date_spec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ void main() {

it('should accept various locales', () {

String defaultLocale = Intl.defaultLocale;
try {
Intl.defaultLocale = 'de';
expect(date(noon, "medium")).
Expand All @@ -78,7 +79,7 @@ void main() {
expect(date(noon, "medium")).
toEqual('sept. 3, 2010 12:05:08 PM');
} finally {
Intl.defaultLocale = 'en';
Intl.defaultLocale = defaultLocale;
}
});
});
Expand Down

0 comments on commit f16536e

Please sign in to comment.