Skip to content

Commit

Permalink
chore: add MTY26, MTY27 & MTY28
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Feb 29, 2024
1 parent 21997ac commit d8e7288
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions index.js
Expand Up @@ -129,7 +129,7 @@ const MODEL_3 = [
]

const MODEL_Y = [
['', [['MTY18'], ['MTY19'], ['MTY23']]],
['', [['MTY18'], ['MTY19'], ['MTY23'], ['MTY26']]],
['Standard Range', [['MTY01'], ['MTY08'], ['MTY13']]],
['Long Range RWD', [['MTY02']]],
[
Expand All @@ -142,7 +142,8 @@ const MODEL_Y = [
['MTY11'],
['MTY14'],
['MTY20'],
['MTY24']
['MTY24'],
['MTY27']
]
],
[
Expand All @@ -154,7 +155,7 @@ const MODEL_Y = [
['MTY12'],
['MTY21'],
['MTY25'],
['MTY26']
['MTY28']
]
]
]
Expand Down
4 changes: 3 additions & 1 deletion test/model-y.js
Expand Up @@ -8,6 +8,7 @@ test('Model Y', t => {
t.is(title({ optionCodes: ['MDLY', 'MTY18'] }), '')
t.is(title({ optionCodes: ['MDLY', 'MTY19'] }), '')
t.is(title({ optionCodes: ['MDLY', 'MTY23'] }), '')
t.is(title({ optionCodes: ['MDLY', 'MTY26'] }), '')
})

test('Model Y Standard Range', t => {
Expand All @@ -29,6 +30,7 @@ test('Model Y Long Range AWD', t => {
t.is(title({ optionCodes: ['MDLY', 'MTY14'] }), 'Long Range AWD')
t.is(title({ optionCodes: ['MDLY', 'MTY20'] }), 'Long Range AWD')
t.is(title({ optionCodes: ['MDLY', 'MTY24'] }), 'Long Range AWD')
t.is(title({ optionCodes: ['MDLY', 'MTY27'] }), 'Long Range AWD')
})

test('Model Y Performance', t => {
Expand All @@ -38,5 +40,5 @@ test('Model Y Performance', t => {
t.is(title({ optionCodes: ['MDLY', 'MTY12'] }), 'Performance')
t.is(title({ optionCodes: ['MDLY', 'MTY21'] }), 'Performance')
t.is(title({ optionCodes: ['MDLY', 'MTY25'] }), 'Performance')
t.is(title({ optionCodes: ['MDLY', 'MTY26'] }), 'Performance')
t.is(title({ optionCodes: ['MDLY', 'MTY28'] }), 'Performance')
})

0 comments on commit d8e7288

Please sign in to comment.