mirror of
https://github.com/laurent22/joplin.git
synced 2026-10-25 02:47:28 +00:00
Desktop: Resolves #16698: OneNote import (*.one / *.onepkg) doesn’t import notes with title longer than about 240 chars (#16836)
This commit is contained in:
1 parent
4d33866822
commit
e09c8e8527
3 files changed
+98
-3
No files matched your search
@@ -494,6 +494,16 @@ describe('InteropService_Importer_OneNote', () => {
|
||||
expect(notesToMarkdownString(matchingNotes)).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it('should import pages whose title is longer than 255 characters', async () => {
|
||||
const notes = await importNote(`${supportDir}/onenote/long_title.zip`);
|
||||
const resources = await Resource.all();
|
||||
|
||||
const noteTitleLengths = notes.map(note => note.title.length).sort((a, b) => a - b);
|
||||
|
||||
expect(noteTitleLengths).toEqual(['long_title'.length, 230, 260]);
|
||||
expect(resources.filter(resource => resource.title.length > 230)).toEqual([]);
|
||||
});
|
||||
|
||||
it('should import updated/created timestamps', async () => {
|
||||
const notes = await importNote(`${supportDir}/onenote/testOneNoteEmbeddedWordDoc.one`);
|
||||
const importedNote = notes.find(n => n.title.startsWith('Embedded doc sheet'));
|
||||
|
||||
Reference in new issue
Block a user