feat: included test

pull/52/head
alestiago 4 years ago
parent 1848fa8a8e
commit 433b23b374

@ -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,

Loading…
Cancel
Save