Commit 3b490a5f authored by Clement Brizard's avatar Clement Brizard
Browse files

fix: typo

parent e5a89985
......@@ -16,7 +16,7 @@ const hardware = {
* */
ASSIMILATION_COMPUTER_TOWER_1G: {
name: 'ASSIMILATION_COMPUTER_TOWER_1G',
french: '1g tour ordinateur',
french: '1 g d\'une tour d\'ordinateur',
isSizeDependent: false,
embodied: {
humanHealth: 4.35 * Math.pow(10, -3),
......
......@@ -354,7 +354,7 @@ class Hardware extends Component {
// Embodied damage may be assimilated to the one of another hardware
if (this.embodiedAssimilatedTo) {
/* Assimilated emmbodied is for 1 g, so we have to multiply
/* Assimilated embodied is for 1 g, so we have to multiply
it by the weight of our hardware */
let boundSpecificWeight
......
......@@ -101,10 +101,12 @@ describe('Hardware class', () => {
instance.embodied,
hardwareDatabase[json.embodiedAssimilatedTo].embodied
)
Object.values(instance.embodied).forEach(categoryDamageValue => {
assert.isNotNaN(categoryDamageValue)
})
})
})
})
describe('#computeVisioOrStandbyTimeOverLife()', () => {
describe('operating', () => {
const hardwaresWithKnownOperatingTime = Object.keys(knownOperatingTimeOverLife)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment