1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-21 09:38:01 +02:00
joplin/packages/app-mobile/utils/ShareUtils.test.ts

11 lines
398 B
TypeScript
Raw Normal View History

import { describe, test, expect } from '@jest/globals';
import { pathExists } from 'fs-extra';
import { writeTextToCacheFile } from './ShareUtils';
describe('ShareUtils', () => {
test('writeTextFileToCache should write given text to a cache file', async () => {
const filePath1 = await writeTextToCacheFile('testing...', 'test1.txt');
expect(await pathExists(filePath1)).toBe(true);
});
});