Comparing version 1.2.0 to 1.3.0
@@ -68,3 +68,3 @@ 'use strict'; | ||
var calcVolumeMeasure = 'gal'; | ||
var calcMashTemp = 'f'; | ||
var calcMashTemp = 'F'; | ||
var grainSH = 0.2; | ||
@@ -71,0 +71,0 @@ |
{ | ||
"name": "beermath", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "A collection of functions to calculate data for beer recipes", | ||
@@ -46,5 +46,5 @@ "main": "dist/index.js", | ||
"@toddself/round": "~1.0.0", | ||
"@toddself/split-measure-units": "~1.0.1", | ||
"convert-units": "~0.1.1" | ||
"@toddself/split-measure-units": "~1.1.1", | ||
"convert-units": "~0.4.0" | ||
} | ||
} |
@@ -9,3 +9,3 @@ import convert from 'convert-units' | ||
const calcVolumeMeasure = 'gal' | ||
const calcMashTemp = 'f' | ||
const calcMashTemp = 'F' | ||
const grainSH = 0.2 | ||
@@ -12,0 +12,0 @@ |
@@ -5,5 +5,5 @@ var test = require('tap').test | ||
test('calculate strike with hltLoss', function (t) { | ||
var results = strikeTemp('12lb', '1.5qt/1lb', '154f', '62f', '2qt') | ||
var results = strikeTemp('12lb', '1.5qt/1lb', '154F', '62F', '2qt') | ||
t.equal(results[0], '5 gal', 'got back 5 gallons') | ||
t.equal(results[1], '166.3 f', 'got back 166.3 farhenheit') | ||
t.equal(results[1], '166.3 F', 'got back 166.3 farhenheit') | ||
t.end() | ||
@@ -13,5 +13,5 @@ }) | ||
test('calculate strike without hltLoss', function (t) { | ||
var results = strikeTemp('12lb', '1.5qt/1lb', '154f', '62f') | ||
var results = strikeTemp('12lb', '1.5qt/1lb', '154F', '62F') | ||
t.equal(results[0], '4.5 gal', 'got back 4.5 gallons') | ||
t.equal(results[1], '166.3 f', 'got back 166.3 farhenheit') | ||
t.equal(results[1], '166.3 F', 'got back 166.3 farhenheit') | ||
t.end() | ||
@@ -21,6 +21,6 @@ }) | ||
test('calc with c', function (t) { | ||
var results = strikeTemp('12lb', '1.5qt/1lb', '66c', '40c') | ||
var results = strikeTemp('12lb', '1.5qt/1lb', '66C', '40C') | ||
t.equal(results[0], '4.5 gal', 'got back 4.5 gallons') | ||
t.equal(results[1], '69.5 c', 'got back 69.5 degrees c') | ||
t.equal(results[1], '69.5 C', 'got back 69.5 degrees c') | ||
t.end() | ||
}) |
+ Added@toddself/split-measure-units@1.1.1(transitive)
+ Addedconvert-units@0.4.1(transitive)
- Removed@toddself/split-measure-units@1.0.1(transitive)
- Removedconvert-units@0.1.1(transitive)
Updatedconvert-units@~0.4.0