1 | import ExponentGyroscope from '../ExponentGyroscope';
|
2 | import Gyroscope from '../Gyroscope';
|
3 |
|
4 | afterEach(() => {
|
5 | Gyroscope.removeAllListeners();
|
6 | });
|
7 |
|
8 | it(`sets the update interval`, async () => {
|
9 | const NativeGyroscope = ExponentGyroscope;
|
10 | await Gyroscope.setUpdateInterval(1234);
|
11 | expect(NativeGyroscope.setUpdateInterval).toHaveBeenCalledTimes(1);
|
12 | expect(NativeGyroscope.setUpdateInterval).toHaveBeenCalledWith(1234);
|
13 | });
|