Skip to content

Commit

Permalink
tests and dependencies correction
Browse files Browse the repository at this point in the history
  • Loading branch information
numen31337 committed Jan 25, 2020
1 parent 936d9a6 commit 262e5ff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions copy_with_extension_gen/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ environment:

dependencies:
analyzer: ">=0.39.0 <1.0.0"
build: ">=1.0.0 <2.0.0"
logging: ">=0.0.0 <1.0.0"
source_gen: ">=0.9.0 <1.0.0"
copy_with_extension: ">=1.0.0 <2.0.0"

Expand Down
4 changes: 3 additions & 1 deletion copy_with_extension_gen/test/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ part of 'basic_class.dart';
// CopyWithGenerator
// **************************************************************************
extension CopyWithExtension on BasicClass {
// ignore_for_file: argument_type_not_assignable, implicit_dynamic_type, always_specify_types
extension BasicClassCopyWithExtension on BasicClass {
BasicClass copyWith({
String id,
}) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import 'package:source_gen/source_gen.dart';
import 'package:copy_with_extension_gen/src/copy_with_generator.dart';
import 'constants.dart';

//Run the tests with `pub run test` as we don't use the flutter dependencies here

void main() {
group('generator', () {
test('produces correct output for correct input', () async {
Expand Down

0 comments on commit 262e5ff

Please sign in to comment.