1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Tools: Fixed tests

This commit is contained in:
Laurent Cozic
2021-05-21 17:02:29 +02:00
parent f8253cc2f0
commit e94503abbe
6 changed files with 11 additions and 40 deletions

View File

@@ -1,17 +1,8 @@
const { afterEachCleanUp } = require('./testing/test-utils.js');
const { shimInit } = require('./shim-init-node.js');
const shim = require('./shim').default;
const sharp = require('sharp');
let keytar;
try {
keytar = shim.platformSupportsKeyChain() ? require('keytar') : null;
} catch (error) {
console.error('Cannot load keytar - keychain support will be disabled', error);
keytar = null;
}
shimInit(sharp, keytar);
shimInit(sharp, null);
global.afterEach(async () => {
await afterEachCleanUp();