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
Henry Heino 53c82434be
Mobile: Add share button to log screen (#8364)
Co-authored-by: Laurent Cozic <laurent22@users.noreply.github.com>
2023-10-02 11:14:08 -07:00

11 lines
398 B
TypeScript

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);
});
});