Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
fix: remove systemPerformanceKiloWatts (#473)
Browse files Browse the repository at this point in the history
fix: remove systemPerformanceKiloWatts 

BREAKING CHANGE
  • Loading branch information
Marine-Berthier authored Mar 3, 2022
1 parent d6151eb commit 799c713
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/lib/factories/__tests__/listing.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ describe("listing", () => {
consumptionCombined: "consumptionCombined",
consumptionExtraUrban: "consumptionExtraUrban",
consumptionUrban: "consumptionUrban",
systemPerformanceKiloWatts: "systemPerformanceKiloWatts",
batteryCapacity: "batteryCapacity",
powerConsumption: "powerConsumption",
range: "range",
Expand Down Expand Up @@ -57,7 +56,6 @@ describe("listing", () => {
"consumptionCombined",
"consumptionExtraUrban",
"consumptionUrban",
"systemPerformanceKiloWatts",
"horsePower",
"cubicCapacity",
"cylinders",
Expand Down
4 changes: 0 additions & 4 deletions src/lib/factories/listing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ const defaults: ListingType = {
frameNumber: "123456",
serialNumber: "123456",
tsn: "1234567890",
systemPerformanceKiloWatts: null,
directImport: false,
hasAdditionalTyres: true,
hasRoofRack: false,
Expand Down Expand Up @@ -235,7 +234,6 @@ export function EmptyListing(): ListingType {
consumptionCombined: undefined,
consumptionExtraUrban: undefined,
consumptionUrban: undefined,
systemPerformanceKiloWatts: undefined,
transmissionType: undefined,
horsePower: undefined,
driveType: undefined,
Expand Down Expand Up @@ -350,7 +348,6 @@ export function ListingFromType({
consumptionCombined,
consumptionExtraUrban,
consumptionUrban,
systemPerformanceKiloWatts,
batteryCapacity,
powerConsumption,
range,
Expand Down Expand Up @@ -393,7 +390,6 @@ export function ListingFromType({
consumptionCombined: consumptionCombined || undefined,
consumptionExtraUrban: consumptionExtraUrban || undefined,
consumptionUrban: consumptionUrban || undefined,
systemPerformanceKiloWatts: systemPerformanceKiloWatts || undefined,
batteryCapacity: batteryCapacity || undefined,
powerConsumption: powerConsumption || undefined,
range: range || undefined,
Expand Down
1 change: 0 additions & 1 deletion src/lib/factories/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const detailsDefaults: TypeType = {
consumptionCombined: 8.4,
consumptionExtraUrban: 6.6,
consumptionUrban: 11.6,
systemPerformanceKiloWatts: 13.4,
batteryCapacity: 100,
powerConsumption: 90,
range: 153,
Expand Down
1 change: 0 additions & 1 deletion src/types/models/commons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export interface EnergyListingTypeCommons {
consumptionExtraUrban: number
consumptionUrban: number

systemPerformanceKiloWatts: number
batteryCapacity: number
powerConsumption: number
range: number
Expand Down

0 comments on commit 799c713

Please sign in to comment.