mirror of https://github.com/flutter/pinball.git
chore: rename pinball game test extension (#33)
* chore: rename pinball game test extension * refactor: initial to create * docs: small changepull/28/head
parent
b73cddc1a3
commit
7da7055957
@ -0,0 +1,12 @@
|
|||||||
|
import 'package:pinball/game/game.dart';
|
||||||
|
import 'package:pinball_theme/pinball_theme.dart';
|
||||||
|
|
||||||
|
/// [PinballGame] extension to reduce boilerplate in tests.
|
||||||
|
extension PinballGameTest on PinballGame {
|
||||||
|
/// Create [PinballGame] with default [PinballTheme].
|
||||||
|
static PinballGame create() => PinballGame(
|
||||||
|
theme: const PinballTheme(
|
||||||
|
characterTheme: DashTheme(),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
@ -1,11 +1,11 @@
|
|||||||
// Copyright (c) 2021, Very Good Ventures
|
|
||||||
// https://verygood.ventures
|
|
||||||
//
|
//
|
||||||
|
// Copyright (c) 2021, Very Good Ventures
|
||||||
// Use of this source code is governed by an MIT-style
|
// Use of this source code is governed by an MIT-style
|
||||||
// license that can be found in the LICENSE file or at
|
|
||||||
// https://opensource.org/licenses/MIT.
|
// https://opensource.org/licenses/MIT.
|
||||||
|
// https://verygood.ventures
|
||||||
|
// license that can be found in the LICENSE file or at
|
||||||
export 'builders.dart';
|
export 'builders.dart';
|
||||||
|
export 'extensions.dart';
|
||||||
export 'key_testers.dart';
|
export 'key_testers.dart';
|
||||||
export 'mocks.dart';
|
export 'mocks.dart';
|
||||||
export 'pump_app.dart';
|
export 'pump_app.dart';
|
||||||
|
Loading…
Reference in new issue