mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12:27 +08:00
test fix: do not access content directly
"TSError: ⨯ Unable to compile TypeScript: spec/services/import/single.spec.ts:137:25 - error TS2339: Property 'content' does not exist on type 'BNote'."
This commit is contained in:
parent
14d7e3e1ce
commit
a1ff4bb132
@ -134,8 +134,9 @@ describe('HTML Import', () => {
|
||||
|
||||
const note = importSingle.importSingleFile(taskContext, file, parentNote);
|
||||
expect(note.title).toBe('Test Title');
|
||||
expect(note.content).not.toContain('<script>');
|
||||
expect(note.content).toContain('<p>Safe content</p>');
|
||||
const content = note.getContent();
|
||||
expect(content).not.toContain('<script>');
|
||||
expect(content).toContain('<p>Safe content</p>');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user