Skip to content

Commit 8948f78

Browse files
authored
fix: linting errors (#209)
Fix linting errors from the #202
2 parents 324bbce + d0964e6 commit 8948f78

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/provider.test.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ describe('LDProvider', () => {
173173
const context: LDContext = { key: 'yus', kind: 'user', name: 'yus ng' };
174174
const options: LDOptions = {
175175
bootstrap: {
176-
'test-flag': true
177-
}
176+
'test-flag': true,
177+
},
178178
};
179179
const props: ProviderConfig = { clientSideID, context, options };
180180

@@ -189,16 +189,16 @@ describe('LDProvider', () => {
189189
<App />
190190
</LDProvider>
191191
);
192-
const instance = create(LaunchDarklyApp).root.findByType(LDProvider).instance as EnhancedComponent
192+
const instance = create(LaunchDarklyApp).root.findByType(LDProvider).instance as EnhancedComponent;
193193
instance.setState = jest.fn();
194-
await instance?.componentDidMount()
194+
await instance?.componentDidMount();
195195

196196
expect(mockInitLDClient).toHaveBeenCalledWith(clientSideID, context, options, undefined);
197197
expect(instance.setState).toHaveBeenCalledWith({
198198
error: true,
199-
flags: { testFlag: true},
200-
unproxiedFlags: { 'test-flag': true,},
201-
flagKeyMap: { testFlag: 'test-flag'},
199+
flags: { testFlag: true },
200+
unproxiedFlags: { 'test-flag': true },
201+
flagKeyMap: { testFlag: 'test-flag' },
202202
ldClient: mockLDClient,
203203
});
204204
});

0 commit comments

Comments
 (0)