Comparing version 1.3.4 to 1.3.5
{ | ||
"name": "mf-parser", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "Parse a molecular formula", | ||
@@ -22,3 +22,3 @@ "main": "src/index.js", | ||
"atom-sorter": "^1.1.9", | ||
"chemical-elements": "^1.1.12", | ||
"chemical-elements": "^1.1.13", | ||
"chemical-groups": "^1.2.1" | ||
@@ -29,3 +29,3 @@ }, | ||
}, | ||
"gitHead": "74a4d17d6ff57ec6e1fbeb5dbfc015c1293d98c4" | ||
"gitHead": "3357658b99069e3a03c06471bc374c5effb919d8" | ||
} |
@@ -223,3 +223,3 @@ 'use strict'; | ||
test.each(Object.keys(tests))('parse molecular formula %s', function (key) { | ||
test.each(Object.keys(tests))('parse molecular formula %s', (key) => { | ||
let parsed = parse(key); | ||
@@ -229,3 +229,3 @@ expect(parsed).toMatchObject(tests[key]); | ||
test('not same opening and closing parenthesis', function () { | ||
test('not same opening and closing parenthesis', () => { | ||
expect(() => { | ||
@@ -232,0 +232,0 @@ parse('C('); |
@@ -5,3 +5,3 @@ 'use strict'; | ||
test('formatCharge', function () { | ||
test('formatCharge', () => { | ||
expect(formatCharge(-2)).toBe('-2'); | ||
@@ -8,0 +8,0 @@ expect(formatCharge(-1)).toBe('-1'); |
@@ -5,3 +5,3 @@ 'use strict'; | ||
test('getCharge', function () { | ||
test('getCharge', () => { | ||
expect(getCharge('---')).toBe(-3); | ||
@@ -8,0 +8,0 @@ expect(getCharge('+++')).toBe(3); |
@@ -112,5 +112,5 @@ 'use strict'; | ||
test.each(tests)('toDisplay', function (aTest) { | ||
test.each(tests)('toDisplay', (aTest) => { | ||
let display = toDisplay(aTest.parsed); | ||
expect(display).toMatchObject(aTest.result); | ||
}); |
@@ -55,3 +55,3 @@ 'use strict'; | ||
test.each(tests)('toParts %p', function (aTest) { | ||
test.each(tests)('toParts %p', (aTest) => { | ||
let parsed = parse(aTest.mf); | ||
@@ -58,0 +58,0 @@ let parts = toParts(parsed); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68823
Updatedchemical-elements@^1.1.13