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

Tools: Add eslint rule "jest/require-top-level-describe"

This commit is contained in:
Laurent Cozic
2023-03-08 19:08:05 +00:00
parent 19431abc73
commit 3eca4ada5a
10 changed files with 104 additions and 21 deletions

View File

@@ -1,4 +1,3 @@
const { setupDatabaseAndSynchronizer, switchClient, supportDir } = require('./testing/test-utils.js');
const shim = require('./shim').default;
const { enexXmlToHtml } = require('./import-enex-html-gen.js');
@@ -50,6 +49,7 @@ const compareOutputToExpected = (options) => {
const outputFile = fileWithPath(`${options.testName}.html`);
const testTitle = `should convert from Enex to Html: ${options.testName}`;
// eslint-disable-next-line jest/require-top-level-describe
it(testTitle, (async () => {
const enexInput = await shim.fsDriver().readFile(inputFile);
const expectedOutput = await shim.fsDriver().readFile(outputFile);