Skip to content

Commit

Permalink
refactor(model3): add highland new interior
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jun 19, 2024
1 parent 8555f2e commit ff840fa
Show file tree
Hide file tree
Showing 4 changed files with 2,130 additions and 773 deletions.
4 changes: 3 additions & 1 deletion src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ const M3_INTERIOR_CODES = [
// highland
'IPB2',
'IPB3',
'IPB4',
'IPW2',
'IPW3'
'IPW3',
'IPW4'
]

const MY_GENERIC_OPTIONS_CODES = ['MTY', 'WY1', 'WY2']
Expand Down
11 changes: 8 additions & 3 deletions test/model-3.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +532,15 @@ withHandDrive(test, 'Model 3 2021 MT320', {
;(() => {
const combinations = []

for (const interior of ['IPB2', 'IPB3', 'IPW2', 'IPW3']) {
for (const wheel of ['W38A', 'W39S']) {
for (const chasis of ['MT351', 'MT352', 'MT354', 'MT353']) {
const wheels = chasis === 'MT353' ? ['W30P'] : ['W38A', 'W39S']
for (const wheel of wheels) {
for (const color of ['PPSW', 'PBSB', 'PPSB', 'PN01', 'PR01']) {
for (const chasis of ['MT351', 'MT352']) {
const interiors =
chasis === 'MT353'
? ['IPB4', 'IPW4']
: ['IPB2', 'IPB3', 'IPW2', 'IPW3']
for (const interior of interiors) {
combinations.push([chasis, interior, wheel, color])
}
}
Expand Down
Loading

0 comments on commit ff840fa

Please sign in to comment.