Comparing version 2.0.0 to 2.1.0
{ | ||
"name": "mf-parser", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Parse a molecular formula", | ||
@@ -25,4 +25,4 @@ "main": "lib/index.js", | ||
"chemical-elements": "^2.0.0", | ||
"chemical-groups": "^2.0.0", | ||
"mf-utilities": "^2.0.0" | ||
"chemical-groups": "^2.1.0", | ||
"mf-utilities": "^2.0.1" | ||
}, | ||
@@ -32,3 +32,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "c6ebfbd64c711f8839a02a43c5708e71a379885b" | ||
"gitHead": "5dbfd516cc7f0aa51bca03f1e2384775b047db8a" | ||
} |
@@ -85,2 +85,19 @@ import { MF } from '..'; | ||
it('T', () => { | ||
let mfT = new MF('T'); | ||
let infoT = mfT.getInfo(); | ||
let mf3H = new MF('[3H]'); | ||
let info3H = mf3H.getInfo(); | ||
expect(infoT).toStrictEqual(info3H); | ||
expect(infoT).toStrictEqual({ | ||
atoms: { H: 1 }, | ||
charge: 0, | ||
mass: 3.0160492779, | ||
mf: '[3H]', | ||
monoisotopicMass: 3.0160492779, | ||
unsaturation: 0.5, | ||
}); | ||
}); | ||
it('H2Si(OH)2', () => { | ||
@@ -87,0 +104,0 @@ let mf = new MF('H2Si(OH)2'); |
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
110098
3702
Updatedchemical-groups@^2.1.0
Updatedmf-utilities@^2.0.1