diff --git a/src/template_helpers.ts b/src/template_helpers.ts index 59c832b2..1129a419 100644 --- a/src/template_helpers.ts +++ b/src/template_helpers.ts @@ -1,7 +1,7 @@ import ChordLyricsPair from './chord_sheet/chord_lyrics_pair'; import Tag from './chord_sheet/tag'; import { INDETERMINATE, NONE } from './constants'; -import { isEmptyString, isEvaluatable } from './utilities'; +import { hasChordContents, isEmptyString, isEvaluatable } from './utilities'; import Item from './chord_sheet/item'; import Line from './chord_sheet/line'; import Paragraph from './chord_sheet/paragraph'; @@ -19,7 +19,7 @@ interface WhenCallback { (): string; } -export { isEvaluatable } from './utilities'; +export { hasChordContents, isEvaluatable } from './utilities'; export { renderChord } from './helpers'; export const isChordLyricsPair = (item: Item): boolean => item instanceof ChordLyricsPair; @@ -99,4 +99,5 @@ export default { evaluate, fontStyleTag, renderChord, + hasChordContents, }; diff --git a/test/exports.test.ts b/test/exports.test.ts index 6d06582c..43acb3d1 100644 --- a/test/exports.test.ts +++ b/test/exports.test.ts @@ -47,6 +47,7 @@ const { evaluate, fontStyleTag, renderChord, + hasChordContents, } = templateHelpers; describe('exports', () => { @@ -99,6 +100,7 @@ describe('exports', () => { expect(evaluate).toBeDefined(); expect(fontStyleTag).toBeDefined(); expect(renderChord).toBeDefined(); + expect(hasChordContents).toBeDefined(); }); it('supplies all constants as properties of the default export', () => {