1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-06 23:56:13 +02:00
Files
joplin/packages/app-mobile/utils/ShareUtils.test.ts
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);
});
});