Convert utils/pluginUtils to TS
Reviewed By: danielbuechele Differential Revision: D16710689 fbshipit-source-id: 8da309810f633af27759286521c784ac665531b9
This commit is contained in:
committed by
Facebook Github Bot
parent
882d7e1a39
commit
ce34c20506
@@ -13,7 +13,7 @@ import {
|
||||
parsePath,
|
||||
shouldShowCrashNotification,
|
||||
} from '../../crash_reporter';
|
||||
import {getPluginKey, getPersistedState} from '../../../utils/pluginUtils.js';
|
||||
import {getPluginKey, getPersistedState} from '../../../utils/pluginUtils.tsx';
|
||||
|
||||
function setDefaultPersistedState(defaultState: PersistedState) {
|
||||
CrashReporterPlugin.defaultPersistedState = defaultState;
|
||||
@@ -208,7 +208,6 @@ test('test getNewPersisitedStateFromCrashLog for non-empty defaultPersistedState
|
||||
const content =
|
||||
'Blaa Blaaa \n Blaa Blaaa \n Exception Type: SIGSEGV \n Blaa Blaa \n Blaa Blaa';
|
||||
expect(perisistedState).toBeDefined();
|
||||
// $FlowFixMe: Checked if perisistedState is defined or not
|
||||
const {crashes} = perisistedState;
|
||||
expect(crashes).toBeDefined();
|
||||
expect(crashes.length).toEqual(1);
|
||||
|
||||
Reference in New Issue
Block a user