mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-30 10:36:35 +02:00
53c82434be
Co-authored-by: Laurent Cozic <laurent22@users.noreply.github.com>
11 lines
398 B
TypeScript
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);
|
|
});
|
|
});
|