Skip to content

Commit

Permalink
Add renderChords to templateHelpers default export (#1044)
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnversluis authored Nov 14, 2023
1 parent b3723c2 commit 6d28520
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/template_helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Metadata from './chord_sheet/metadata';
import Configuration from './formatter/configuration/configuration';
import Evaluatable from './chord_sheet/chord_pro/evaluatable';
import Font from './chord_sheet/font';
import { renderChord } from './helpers';

interface EachCallback {
(_item: any): string;
Expand Down Expand Up @@ -97,4 +98,5 @@ export default {
paragraphClasses,
evaluate,
fontStyleTag,
renderChord,
};
2 changes: 2 additions & 0 deletions test/exports.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const {
paragraphClasses,
evaluate,
fontStyleTag,
renderChord,
} = templateHelpers;

describe('exports', () => {
Expand Down Expand Up @@ -97,6 +98,7 @@ describe('exports', () => {
expect(paragraphClasses).toBeDefined();
expect(evaluate).toBeDefined();
expect(fontStyleTag).toBeDefined();
expect(renderChord).toBeDefined();
});

it('supplies all constants as properties of the default export', () => {
Expand Down

0 comments on commit 6d28520

Please sign in to comment.