Skip to content

Commit

Permalink
INTL-1332: order change for testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
chetansinghchoudhary-wk committed Sep 21, 2023
1 parent 2765fc3 commit fd61b49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/executables/intl_message_migration_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ d.DirectoryDescriptor expectedOutputFiles(
{Iterable<d.Descriptor> additionalFilesInLib = const [],
List<String> messages = defaultMessages,
String rmuiVersionConstraint = '^1.1.1',
String intlImport = '${wIntl}/intl_wrapper.dart'}) {
String intlImport = 'package:w_intl/intl_wrapper.dart'}) {
return d.dir('project', [
// Note that the codemod doesn't currently add the intl dependency to the pubspec.
d.file('pubspec.yaml', /*language=yaml*/ '''
Expand All @@ -317,21 +317,21 @@ dependencies:
d.dir('lib', [
...additionalFilesInLib,
d.file('usage.dart', /*language=dart*/ '''
import 'package:test_project/src/intl/test_project_intl.dart';
import 'package:react_material_ui/react_material_ui.dart' as mui;
import 'package:test_project/src/intl/test_project_intl.dart';
usage() => (mui.Button()..aria.label=TestProjectIntl.sortsLater)(TestProjectIntl.literalString);'''),
d.dir('src', [
d.dir('intl', [
d.file('test_project_intl.dart', /*language=dart*/ '''
import 'package:${intlImport}';
import 'package:w_intl/intl_wrapper.dart';
${IntlMessages.introComment}
//ignore_for_file: avoid_classes_with_only_static_members
//ignore_for_file: unnecessary_brace_in_string_interps
class TestProjectIntl {
${messages.join('\n\n')}
${messages}
}''')
]),
Expand Down

0 comments on commit fd61b49

Please sign in to comment.