/
githubmirror
/
nativefier
Обзор
Документация
Войти
/
githubmirror
/
nativefier
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/build/prepareElectronApp.test.ts
11 строк
495 B
Ronan Jouchet
Fix logging out users on upgrade / app recreate with same URL (fix #1176) (PR #1179)
03 май 2021, 18:16
Не верифицирован
03 май 2021, 18:16
331fe8d
Код
Авторство
О чём код?
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'); }); });