mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-12 08:54:00 +02:00
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);
|
||
|
});
|
||
|
});
|