Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
fix a test expectation for extension types
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew committed Mar 11, 2024
1 parent 3307105 commit cb721ac
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 4.10.1-wip

## 4.10.0

* Add `Library.docs` to support emitting doc comments on libraries.
Expand Down
9 changes: 4 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: code_builder
version: 4.10.0
description: >-
A fluent, builder-based library for generating valid Dart code
version: 4.10.1-wip
description: A fluent, builder-based library for generating valid Dart code.
repository: https://github.com/dart-lang/code_builder

environment:
sdk: '>=3.0.0 <4.0.0'
sdk: ^3.0.0

dependencies:
built_collection: ^5.0.0
Expand All @@ -18,7 +17,7 @@ dev_dependencies:
build: ^2.0.0
build_runner: ^2.0.3
built_value_generator: ^8.0.0
dart_flutter_team_lints: ^1.0.0
dart_flutter_team_lints: ^2.0.0
dart_style: ^2.3.4
source_gen: ^1.0.0
test: ^1.16.0
2 changes: 1 addition & 1 deletion test/common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ final DartFormatter _dartfmt = DartFormatter();
String _format(String source) {
try {
return _dartfmt.format(source);
} on FormatException catch (_) {
} on FormatterException catch (_) {
return _dartfmt.formatStatement(source);
}
}
Expand Down
5 changes: 4 additions & 1 deletion test/specs/extension_type_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ void main() {
equalsDart(r'''
extension type Foo._(int bar) {
Foo(this.bar);
factory Foo.named(int baz) { return Foo(baz); }
factory Foo.named(int baz) {
return Foo(baz);
}
}
'''),
);
Expand Down

0 comments on commit cb721ac

Please sign in to comment.