Skip to content

Commit

Permalink
Fix typo in Measurement class: update CONVERTABLE_UNITS to CONVERTIBL…
Browse files Browse the repository at this point in the history
…E_UNITS
  • Loading branch information
BigThunderSR committed Mar 4, 2025
1 parent 372f6fa commit d655221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/measurement.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const _ = require('lodash');
const convert = require('convert-units');

class Measurement {
static CONVERTABLE_UNITS = [
static CONVERTIBLE_UNITS = [
'°C',
'km',
'kPa',
Expand All @@ -15,7 +15,7 @@ class Measurement {
constructor(value, unit) {
this.value = value;
this.unit = Measurement.correctUnitName(unit);
this.isConvertible = _.includes(Measurement.CONVERTABLE_UNITS, this.unit);
this.isConvertible = _.includes(Measurement.CONVERTIBLE_UNITS, this.unit);
}

/**
Expand Down

0 comments on commit d655221

Please sign in to comment.