Skip to content

Commit 9c11446

Browse files
committed
Fixed broken snapshot tests. Removed unused imports.
1 parent c08095a commit 9c11446

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/asyncWithLDProvider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState, useEffect, FunctionComponent, PropsWithChildren, ReactNode } from 'react';
1+
import React, { useState, useEffect, ReactNode } from 'react';
22
import { LDFlagSet, LDFlagChangeset } from 'launchdarkly-js-client-sdk';
33
import { AsyncProviderConfig, defaultReactOptions } from './types';
44
import { Provider } from './context';

src/provider.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ describe('LDProvider', () => {
3939
<App />
4040
</LDProvider>
4141
);
42-
const component = create(LaunchDarklyApp).toTree()?.instance as Component;
42+
const component = create(LaunchDarklyApp);
4343
expect(component).toMatchSnapshot();
4444
});
4545

0 commit comments

Comments
 (0)