Skip to content

Commit

Permalink
fix: remove AddPropAircraft
Browse files Browse the repository at this point in the history
  • Loading branch information
🐸 committed Jul 2, 2023
1 parent f6299fd commit f9b296e
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion example.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ const dcsMission = new DcsMission({
gun: 100,
},
speed: 123.33333333333,
AddPropAircraft: {},
unitId: 1,
}),
],
Expand Down
3 changes: 0 additions & 3 deletions src/__snapshots__/dcs-mission.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -714,9 +714,6 @@ exports[`given a simple mission with 1 plane group should build a mission file 1
},
["speed"]=123.33333333333,
["heading"]=0,
["AddPropAircraft"]=
{
},
["unitId"]=1
}
},
Expand Down
1 change: 0 additions & 1 deletion src/dcs-mission.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ describe("given a simple mission with 1 plane group", () => {
gun: 100,
},
speed: 123.33333333333,
AddPropAircraft: {},
unitId: 1,
}),
],
Expand Down
1 change: 0 additions & 1 deletion src/files/mission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ const planeUnitSchema = z.object({
}),
speed: z.number().describe("Aircraft speed in meters per second"),
heading: z.number().default(0),
AddPropAircraft: z.object({}).default({}),
unitId: z.number(),
});

Expand Down
2 changes: 0 additions & 2 deletions test/plane-group.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ describe("when generating a plane group", () => {
gun: 100,
},
speed: 123.33333333333,
AddPropAircraft: {},
unitId: 1,
}),
],
Expand Down Expand Up @@ -136,7 +135,6 @@ describe("when generating a plane group", () => {
},
speed: 123.33333333333,
heading: 0,
AddPropAircraft: {},
unitId: 1,
},
],
Expand Down
3 changes: 0 additions & 3 deletions test/plane.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ describe("when generating a plane", () => {
gun: 100,
},
speed: 123.33333333333,
AddPropAircraft: {},
unitId: 1,
}),
).toThrowErrorMatchingInlineSnapshot(`
Expand Down Expand Up @@ -55,7 +54,6 @@ describe("when generating a plane", () => {
gun: 100,
},
speed: 123.33333333333,
AddPropAircraft: {},
unitId: 1,
}),
).toEqual({
Expand All @@ -80,7 +78,6 @@ describe("when generating a plane", () => {
},
speed: 123.33333333333,
heading: 0,
AddPropAircraft: {},
unitId: 1,
});
});
Expand Down

0 comments on commit f9b296e

Please sign in to comment.