Lines Matching refs:async
16 export async function test(t) {
41 t.it('resolves with a string', async () => {
49 t.it('resolves with an object', async () => {
56 t.it('emits an event with token (or not, if getDevicePushTokenAsync failed)', async () => {
63 t.it('resolves when multiple calls are issued', async () => {
74 itWithExpoPushToken('fetches Expo push token', async () => {
89 itWithExpoPushToken('resolves when mixed multiple calls are issued', async () => {
121 t.beforeAll(async () => {
135 handleNotification: async (notification) => {
160 t.beforeEach(async () => {
176 t.it('calls the `handleNotification` callback of the notification handler', async () => {
188 t.it('emits a “notification received” event', async () => {
200 t.it('the notification has proper `data` value', async () => {
212 t.describe('if handler responds in time', async () => {
215 async () => {
231 t.describe('if handler fails to respond in time', async () => {
233 handleFuncOverride = async () => {
249 async () => {
268 t.it('resolves with an object', async () => {
276 t.it('resolves without any arguments', async () => {
282 t.it('resolves with specific permissions requested', async () => {
296 t.it('presents a simple notification', async () => {
305 t.it('presents a notification with attachments', async () => {
326 t.it('returns null if there is no such channel', async () => {
334 t.it('returns an object if there is such channel', async () => {
342 t.it('returns an array', async () => {
349 t.it('contains the fallback channel', async () => {
363 t.afterEach(async () => {
368 t.it('returns the modified channel', async () => {
378 t.it('creates a channel', async () => {
388 t.it('sets custom properties', async () => {
414 t.it('assigns a channel to a group', async () => {
432 t.it('updates a channel', async () => {
454 t.it("doesn't throw an error", async () => {
462 t.it('deletes a channel', async () => {
473 t.it("doesn't throw an error", async () => {
485 t.it('returns null if there is no such channel group', async () => {
493 t.it('returns an object if there is such channel group', async () => {
508 t.it('returns an array', async () => {
513 t.it('returns existing channel groups', async () => {
523 t.it("doesn't throw an error", async () => {
530 t.afterEach(async () => {
535 t.it('returns the modified channel group', async () => {
545 t.it('creates a channel group', async () => {
561 t.it('sets custom properties', async () => {
580 t.it('updates a channel group', async () => {
602 t.it("doesn't throw an error", async () => {
661 t.beforeAll(async () => {
665 t.afterEach(async () => {
666 allTestCategoryIds.forEach(async (id) => {
671 t.it('returns an empty array if there are no categories', async () => {
677 t.it('returns an array with the just-created categories', async () => {
695 t.afterEach(async () => {
696 allTestCategoryIds.forEach(async (id) => {
700 t.it('creates a category with one action successfully', async () => {
720 t.it('creates a category with two actions successfully', async () => {
742 t.afterEach(async () => {
743 allTestCategoryIds.forEach(async (id) => {
747 t.it('deleting a category that does not exist returns false', async () => {
756 t.it('deleting a category that does exist returns true', async () => {
767 t.it('returns an array of length 1 after creating 2 categories & deleting 1', async () => {
787 t.it('resolves with an integer', async () => {
794 t.it('resolves with a boolean', async () => {
800 t.it('sets a retrievable counter (if set succeeds)', async () => {
810 t.it('clears the counter', async () => {
824 handleNotification: async () => ({
833 t.it('resolves with an array containing a displayed notification', async () => {
854 t.it('resolves with an array that does not contain a canceled notification', async () => {
869 t.it('includes the foreign persistent notification', async () => {
885 t.it('resolves for a valid notification ID', async () => {
897 t.it('resolves for an invalid notification ID', async () => {
903 t.it('resolves', async () => {
912 t.afterEach(async () => {
916 t.it('resolves with an Array', async () => {
921 t.it('contains a scheduled notification', async () => {
944 t.it('does not contain a canceled notification', async () => {
969 t.afterEach(async () => {
975 async () => {
993 async () => {
1011 async () => {
1029 async () => {
1059 async () => {
1062 handleNotification: async (event) => {
1083 async () => {
1086 handleNotification: async (event) => {
1120 async () => {
1123 handleNotification: async (event) => {
1157 async () => {
1160 handleNotification: async (event) => {
1182 async () => {
1223 async () => {
1267 async () => {
1316 async () => {
1340 async () => {
1362 t.it('generates trigger date for a calendar trigger', async () => {
1367 t.it('fails to generate trigger date for a calendar trigger', async () => {
1378 t.it('generates trigger date for a daily trigger', async () => {
1389 t.it('generates trigger date for a weekly trigger', async () => {
1404 t.it('generates trigger date for a yearly trigger', async () => {
1420 t.it('fails to generate trigger date for the immediate trigger', async () => {
1437 async () => {
1460 async () => {
1490 t.beforeEach(async () => {
1520 async () =>
1527 async function handleStateChange(state) {
1582 t.beforeEach(async () => {
1584 handleNotification: async () => ({
1604 async () => {
1661 t.beforeEach(async () => {
1664 handleNotification: async () => {
1673 t.afterEach(async () => {
1680 async () => {
1720 t.beforeEach(async () => {
1723 handleNotification: async () => {
1732 t.afterEach(async () => {
1739 async () => {
1782 t.beforeEach(async () => {
1785 handleNotification: async () => {
1794 t.afterEach(async () => {
1801 async () => {
1837 async function sendTestPushNotification(expoPushToken, notificationOverrides) {