refactor: removed unecessary tests

pull/50/head
alestiago 4 years ago
parent b743330ba3
commit e1adff78a1

@ -26,18 +26,6 @@ void main() {
); );
group('body', () { group('body', () {
flameTester.test(
'positions correctly',
(game) async {
final position = Vector2.all(10);
final ball = Ball()..initialPosition = position;
await game.ensureAdd(ball);
game.contains(ball);
expect(ball.body.position, equals(position));
},
);
flameTester.test( flameTester.test(
'is dynamic', 'is dynamic',
(game) async { (game) async {

@ -29,21 +29,6 @@ void main() {
); );
group('body', () { group('body', () {
flameTester.test(
'positions correctly',
(game) async {
final position = Vector2.all(10);
final baseboard = Baseboard(
side: BoardSide.left,
)..initialPosition = position;
await game.ensureAdd(baseboard);
game.contains(baseboard);
expect(baseboard.body.position, equals(position));
},
);
flameTester.test( flameTester.test(
'is static', 'is static',
(game) async { (game) async {

@ -134,21 +134,6 @@ void main() {
); );
group('body', () { group('body', () {
flameTester.test(
'positions correctly',
(game) async {
final position = Vector2.all(10);
final bonusLetter = BonusLetter(
letter: 'G',
index: 0,
)..initialPosition = position;
await game.ensureAdd(bonusLetter);
game.contains(bonusLetter);
expect(bonusLetter.body.position, position);
},
);
flameTester.test( flameTester.test(
'is static', 'is static',
(game) async { (game) async {

@ -50,20 +50,6 @@ void main() {
}); });
group('body', () { group('body', () {
flameTester.test(
'positions correctly',
(game) async {
final position = Vector2.all(10);
final flipper = Flipper.fromSide(
side: BoardSide.left,
)..initialPosition = position;
await game.ensureAdd(flipper);
game.contains(flipper);
expect(flipper.body.position, position);
},
);
flameTester.test( flameTester.test(
'is dynamic', 'is dynamic',
(game) async { (game) async {

@ -22,19 +22,6 @@ void main() {
); );
group('body', () { group('body', () {
flameTester.test(
'positions correctly',
(game) async {
await game.ready();
final position = Vector2.all(10);
final anchor = JointAnchor()..initialPosition = position;
await game.ensureAdd(anchor);
game.contains(anchor);
expect(anchor.body.position, position);
},
);
flameTester.test( flameTester.test(
'is static', 'is static',
(game) async { (game) async {

@ -72,23 +72,6 @@ void main() {
); );
group('body', () { group('body', () {
flameTester.test(
'positions correctly',
(game) async {
await game.ready();
final position = Vector2.all(10);
final pathway = Pathway.straight(
start: Vector2(10, 10),
end: Vector2(20, 20),
width: width,
)..initialPosition = position;
await game.ensureAdd(pathway);
game.contains(pathway);
expect(pathway.body.position, equals(position));
},
);
flameTester.test( flameTester.test(
'is static', 'is static',
(game) async { (game) async {
@ -164,24 +147,6 @@ void main() {
); );
group('body', () { group('body', () {
flameTester.test(
'positions correctly',
(game) async {
await game.ready();
final position = Vector2.all(10);
final pathway = Pathway.arc(
center: position,
width: width,
radius: 100,
angle: math.pi / 2,
)..initialPosition = position;
await game.ensureAdd(pathway);
game.contains(pathway);
expect(pathway.body.position, position);
},
);
flameTester.test( flameTester.test(
'is static', 'is static',
(game) async { (game) async {
@ -223,22 +188,6 @@ void main() {
); );
group('body', () { group('body', () {
flameTester.test(
'positions correctly',
(game) async {
await game.ready();
final position = Vector2.all(10);
final pathway = Pathway.bezierCurve(
controlPoints: controlPoints,
width: width,
)..initialPosition = position;
await game.ensureAdd(pathway);
game.contains(pathway);
expect(pathway.body.position, position);
},
);
flameTester.test( flameTester.test(
'is static', 'is static',
(game) async { (game) async {

@ -32,20 +32,6 @@ void main() {
); );
group('body', () { group('body', () {
flameTester.test(
'positions correctly',
(game) async {
final position = Vector2.all(10);
final plunger = Plunger(
compressionDistance: compressionDistance,
)..initialPosition = position;
await game.ensureAdd(plunger);
game.contains(plunger);
expect(plunger.body.position, position);
},
);
flameTester.test( flameTester.test(
'is dynamic', 'is dynamic',
(game) async { (game) async {

@ -41,21 +41,6 @@ void main() {
); );
group('body', () { group('body', () {
flameTester.test(
'positions correctly',
(game) async {
final position = Vector2.all(10);
final roundBumper = RoundBumper(
radius: radius,
points: points,
)..initialPosition = position;
await game.ensureAdd(roundBumper);
game.contains(roundBumper);
expect(roundBumper.body.position, equals(position));
},
);
flameTester.test( flameTester.test(
'is static', 'is static',
(game) async { (game) async {

@ -22,19 +22,6 @@ void main() {
); );
group('body', () { group('body', () {
flameTester.test(
'positions correctly',
(game) async {
final position = Vector2.all(10);
final slingShot = SlingShot(
side: BoardSide.left,
)..initialPosition = position;
await game.ensureAdd(slingShot);
expect(slingShot.body.position, equals(position));
},
);
flameTester.test( flameTester.test(
'is static', 'is static',
(game) async { (game) async {

Loading…
Cancel
Save