import { RenderedNoteMetadata, parseRenderedNoteMetadata } from './utils'; describe('interop/utils', () => { test.each<[string, RenderedNoteMetadata]>([ [ '', { printTitle: true }, ], [ '', { printTitle: false }, ], [ '', { printTitle: true }, ], [ '', { printTitle: false }, ], [ '', { printTitle: true }, ], [ '', { printTitle: false }, ], ])('should parse metadata from the note HTML body', async (bodyHtml, expected) => { const actual = parseRenderedNoteMetadata(bodyHtml); expect(actual).toEqual(expected); }); });