Some renames
Summary: Some non-semantic changes. Mostly an earlier rename that was accidentally done only locally rather than across the codebase Also support `.spec` test extension, which is more idiomatic Jest, since we don't use the `.node` and `.electron` distinction anymore anyway. Reviewed By: jknoxville Differential Revision: D22976438 fbshipit-source-id: f3abedb36cbac1e835295177117ccbca492a67a1
This commit is contained in:
committed by
Facebook GitHub Bot
parent
bce3d48e71
commit
744fe01922
@@ -13,7 +13,7 @@ import {FlipperPlugin} from '../plugin';
|
||||
import {renderMockFlipperWithPlugin} from '../test-utils/createMockFlipperWithPlugin';
|
||||
import {
|
||||
SandyPluginDefinition,
|
||||
FlipperClient,
|
||||
PluginClient,
|
||||
TestUtils,
|
||||
usePlugin,
|
||||
createState,
|
||||
@@ -113,7 +113,7 @@ test('PluginContainer can render Sandy plugins', async () => {
|
||||
return <div>Hello from Sandy</div>;
|
||||
}
|
||||
|
||||
const plugin = (client: FlipperClient) => {
|
||||
const plugin = (client: PluginClient) => {
|
||||
const connectedStub = jest.fn();
|
||||
const disconnectedStub = jest.fn();
|
||||
const activatedStub = jest.fn();
|
||||
@@ -254,7 +254,7 @@ test('PluginContainer triggers correct lifecycles for background plugin', async
|
||||
return <div>Hello from Sandy</div>;
|
||||
}
|
||||
|
||||
const plugin = (client: FlipperClient) => {
|
||||
const plugin = (client: PluginClient) => {
|
||||
const connectedStub = jest.fn();
|
||||
const disconnectedStub = jest.fn();
|
||||
const activatedStub = jest.fn();
|
||||
@@ -396,7 +396,7 @@ test('PluginContainer triggers correct lifecycles for background plugin', async
|
||||
test('PluginContainer + Sandy plugin supports deeplink', async () => {
|
||||
const linksSeen: any[] = [];
|
||||
|
||||
const plugin = (client: FlipperClient) => {
|
||||
const plugin = (client: PluginClient) => {
|
||||
const linkState = createState('');
|
||||
client.onDeepLink((link) => {
|
||||
linksSeen.push(link);
|
||||
|
||||
Reference in New Issue
Block a user