1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Desktop, Mobile: Fixes #5687: Fixed issue with parts of HTML notes not being displayed in some cases

This commit is contained in:
Laurent Cozic
2021-11-09 18:33:28 +00:00
parent f8d9601ff7
commit 4deeed0d5c
7 changed files with 27 additions and 3 deletions

View File

@@ -41,6 +41,11 @@ const beautifyHtml = (html) => {
* `<content><![CDATA[...]]</content>`.
*/
const compareOutputToExpected = (options) => {
options = {
resources: [],
...options,
};
const inputFile = fileWithPath(`${options.testName}.enex`);
const outputFile = fileWithPath(`${options.testName}.html`);
const testTitle = `should convert from Enex to Html: ${options.testName}`;
@@ -62,12 +67,10 @@ describe('EnexToHtml', function() {
compareOutputToExpected({
testName: 'checklist-list',
resources: [],
});
compareOutputToExpected({
testName: 'svg',
resources: [],
});
compareOutputToExpected({
@@ -96,6 +99,10 @@ describe('EnexToHtml', function() {
}],
});
compareOutputToExpected({
testName: 'quoted-attributes',
});
// it('fails when not given a matching resource', (async () => {
// // To test the promise-unexpectedly-resolved case, add `audioResource` to the array.
// const resources = [];