martijnversluis/ChordSheetJS

View on GitHub
test/default_export.test.ts

Summary

Maintainability
A
0 mins
Test Coverage
import chordsheetjs from '../src';

describe('default export', () => {
  [
    'Chord',
    'ChordProParser',
    'ChordSheetParser',
    'UltimateGuitarParser',
    'TextFormatter',
    'HtmlTableFormatter',
    'HtmlDivFormatter',
    'ChordProFormatter',
    'ChordLyricsPair',
    'Line',
    'Song',
    'Tag',
    'Comment',
    'Metadata',
    'Paragraph',
    'Ternary',
    'Composite',
    'Literal',
    'ChordSheetSerializer',
    'CHORUS',
    'INDETERMINATE',
    'VERSE',
    'NONE',
  ].forEach((constantName) => {
    it(`contains ${constantName}`, () => {
      expect(typeof chordsheetjs[constantName]).not.toEqual('undefined');
    });
  });
});