UNPKG

429 BPlain TextView Raw
1import ExponentGyroscope from '../ExponentGyroscope';
2import Gyroscope from '../Gyroscope';
3
4afterEach(() => {
5 Gyroscope.removeAllListeners();
6});
7
8it(`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});