text: 'use strict';
  
  const { MF, IsotopicDistribution } = require('..');
  
  describe('mass-tools', () => {
    it('isotopicDistrbution', () => {
      let isotopicDistribution = new IsotopicDistribution('C10');
      let xy = isotopicDistribution.getXY();
      expect(xy.x[0]).toBe(120);
      expect(xy.y[0]).toBe(100);
    });
  
    it('MF', () => {
      let mf = new MF('C10');
      let html = mf.toHtml();
      let info = mf.getInfo();
  
      expect(html).toBe('C<sub>10</sub>');
      expect(info).toMatchObject({
        mass: 120.10735896735248,
        monoisotopicMass: 120,
        charge: 0,
        mf: 'C10',
        atoms: { C: 10 },
        unsaturation: 11,
      });
    });
  });
  