|
|
@ -32,8 +32,10 @@ void main() {
|
|
|
|
'when BodyDef is not positioned with initialPosition',
|
|
|
|
'when BodyDef is not positioned with initialPosition',
|
|
|
|
(game) async {
|
|
|
|
(game) async {
|
|
|
|
// TODO(alestiago): Make this pass.
|
|
|
|
// TODO(alestiago): Make this pass.
|
|
|
|
final component = TestBodyComponent();
|
|
|
|
final component = TestBodyComponent()
|
|
|
|
await game.ready();
|
|
|
|
..initialPosition = Vector2.all(
|
|
|
|
|
|
|
|
10,
|
|
|
|
|
|
|
|
);
|
|
|
|
await expectLater(
|
|
|
|
await expectLater(
|
|
|
|
() => game.ensureAdd(component),
|
|
|
|
() => game.ensureAdd(component),
|
|
|
|
throwsAssertionError,
|
|
|
|
throwsAssertionError,
|
|
|
|