Lines Matching refs:async

15 export async function test(t) {
20 const testShapeOrUnauthorized = (testFunction) => async () => {
68 t.it('requests foreground location permissions', async () => {
76 t.it('gets foreground location permissions', async () => {
84 t.it('requests background location permissions', async () => {
92 t.it('gets background location permissions', async () => {
100 t.it('checks if location services are enabled', async () => {
110 async () => {
119 async () => {
127 async () => {
135 async () => {
150 async () => {
215 async () => {
229 async () => {
242 async () => {
252 t.it('resolves when watchPositionAsync is running', async () => {
271 async () => {
283 t.it('returns null if maxAge is zero', async () => {
288 t.it('returns null if maxAge is negative', async () => {
293 t.it("returns location that doesn't exceed maxAge or null", async () => {
303 t.it('returns location with required accuracy or null', async () => {
312 t.it('returns null if required accuracy is zero', async () => {
321 async () => {
331 t.it('resolves when watchPositionAsync is running', async () => {
339 t.it('gets a result of the correct shape', async () => {
340 await new Promise(async (resolve, reject) => {
349 t.it('can be called simultaneously', async () => {
365 const testCompass = (options) => async () => {
402 async () => {
417 async () => {
430 async () => {
447 t.it("throws for a location where `latitude` and `longitude` aren't numbers", async () => {
462 async function expectTaskAccuracyToBe(accuracy) {
469 t.it('starts location updates', async () => {
473 t.it('has started location updates', async () => {
478 t.it('defaults to balanced accuracy', async () => {
482 t.it('can update existing task', async () => {
490 t.it('stops location updates', async () => {
494 t.it('has stopped location updates', async () => {
520 async function expectTaskRegionsToBeLike(regions) {
535 t.it('starts geofencing', async () => {
539 t.it('has started geofencing', async () => {
544 t.it('is monitoring correct regions', async () => {
548 t.it('can update geofencing regions', async () => {
554 t.it('stops geofencing', async () => {
558 t.it('has stopped geofencing', async () => {
563 t.it('throws when starting geofencing with incorrect regions', async () => {
564 await (async () => {
574 await (async () => {