Adding unit tests to all possible mucus feeling/texture combinations
This commit is contained in:
1 parent
9ab4bd0dfa
commit
7e0456c10f
3 files changed
+98
-1
No files matched your search
@@ -0,0 +1,16 @@
|
||||
export default function (feeling, texture) {
|
||||
const feelingMapping = {
|
||||
0: 0,
|
||||
1: 1,
|
||||
2: 2,
|
||||
3: 4
|
||||
}
|
||||
const textureMapping = {
|
||||
0: 0,
|
||||
1: 3,
|
||||
2: 4
|
||||
}
|
||||
const nfpFeelingValue = feelingMapping[feeling]
|
||||
const nfpTextureValue = textureMapping[texture]
|
||||
return Math.max(nfpFeelingValue, nfpTextureValue)
|
||||
}
|
||||
Reference in new issue
Block a user