Skip to content

Commit

Permalink
test [nfc]: Refactor remaining inconsistent localization use in test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisirhc committed Mar 13, 2024
1 parent 952c45d commit 4932db1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/api/core_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import 'dart:convert';
import 'dart:io';

import 'package:checks/checks.dart';
import 'package:flutter_gen/gen_l10n/zulip_localizations.dart';
import 'package:http/http.dart' as http;
import 'package:test/scaffolding.dart';
import 'package:zulip/api/core.dart';
import 'package:zulip/api/exception.dart';
import 'package:zulip/model/localizations.dart';

import '../stdlib_checks.dart';
import 'exception_checks.dart';
Expand Down Expand Up @@ -161,7 +161,7 @@ void main() {
..which(condition));
}

final zulipLocalizations = lookupZulipLocalizations(ZulipLocalizations.supportedLocales.first);
final zulipLocalizations = GlobalLocalizations.zulipLocalizations;
checkRequest(http.ClientException('Oops'), (it) => it.message.equals('Oops'));
checkRequest(const TlsException('Oops'), (it) => it.message.equals('Oops'));
checkRequest((foo: 'bar'), (it) => it
Expand Down

0 comments on commit 4932db1

Please sign in to comment.