Skip to content

Commit 7ba6e77

Browse files
committed
fix: lint
1 parent ccbbb39 commit 7ba6e77

File tree

1 file changed

+20
-15
lines changed
  • sdk/@launchdarkly/react-native-ld-session-replay/src/__tests__

1 file changed

+20
-15
lines changed
Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,38 @@
1-
import NativeSessionReplayReactNative from '../NativeSessionReplayReactNative'
2-
import { configureSessionReplay, createSessionReplayPlugin } from '../index'
1+
import NativeSessionReplayReactNative from '../NativeSessionReplayReactNative';
2+
import { configureSessionReplay, createSessionReplayPlugin } from '../index';
33

44
jest.mock('../NativeSessionReplayReactNative', () => ({
55
configure: jest.fn().mockResolvedValue(undefined),
66
startSessionReplay: jest.fn().mockResolvedValue(undefined),
77
stopSessionReplay: jest.fn().mockResolvedValue(undefined),
8-
}))
8+
}));
99

1010
describe('configureSessionReplay', () => {
1111
it('rejects if key is empty', async () => {
12-
await expect(configureSessionReplay('')).rejects.toThrow()
13-
})
12+
await expect(configureSessionReplay('')).rejects.toThrow();
13+
});
1414

1515
it('rejects if key is whitespace', async () => {
16-
await expect(configureSessionReplay(' ')).rejects.toThrow()
17-
})
18-
})
16+
await expect(configureSessionReplay(' ')).rejects.toThrow();
17+
});
18+
});
1919

2020
describe('SessionReplayPluginAdapter', () => {
2121
it('calls configure and startSessionReplay on register', async () => {
22-
const plugin = createSessionReplayPlugin()
23-
plugin.register({}, { sdk: { name: 'test', version: '0.0.0' }, mobileKey: 'mob-key-123' })
22+
const plugin = createSessionReplayPlugin();
23+
plugin.register(
24+
{},
25+
{ sdk: { name: 'test', version: '0.0.0' }, mobileKey: 'mob-key-123' }
26+
);
2427

25-
await new Promise(process.nextTick)
28+
await new Promise(process.nextTick);
2629

2730
expect(NativeSessionReplayReactNative.configure).toHaveBeenCalledWith(
2831
'mob-key-123',
2932
{}
30-
)
31-
expect(NativeSessionReplayReactNative.startSessionReplay).toHaveBeenCalled()
32-
})
33-
})
33+
);
34+
expect(
35+
NativeSessionReplayReactNative.startSessionReplay
36+
).toHaveBeenCalled();
37+
});
38+
});

0 commit comments

Comments
 (0)