(notes: { uri: string; content: string }[])
| 17 | Logger.setLevel('error'); |
| 18 | |
| 19 | const makeWorkspace = async (notes: { uri: string; content: string }[]) => { |
| 20 | const dataStore = new InMemoryDataStore(); |
| 21 | const workspace = createTestWorkspace([URI.file('/')], dataStore); |
| 22 | for (const { uri, content } of notes) { |
| 23 | const foamUri = URI.file(uri); |
| 24 | dataStore.set(foamUri, content); |
| 25 | workspace.set(createNoteFromMarkdown(uri, content)); |
| 26 | } |
| 27 | return { workspace, dataStore }; |
| 28 | }; |
| 29 | |
| 30 | describe('missingHeadingRule', () => { |
| 31 | it('returns no issues for a note with an h1', async () => { |
no test coverage detected