mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-06-02 04:40:48 +00:00
12 lines
495 B
TypeScript
12 lines
495 B
TypeScript
|
import { normalizeAppName } from './prepareElectronApp';
|
||
|
|
||
|
describe('normalizeAppName', () => {
|
||
|
test('it is stable', () => {
|
||
|
// Non-determinism / unstability would cause using a different appName
|
||
|
// at each app regen, thus a different appData folder, which would cause
|
||
|
// losing user state, including login state through cookies.
|
||
|
const normalizedTrello = normalizeAppName('Trello', 'https://trello.com');
|
||
|
expect(normalizedTrello).toBe('trello-nativefier-679e8e');
|
||
|
});
|
||
|
});
|