Lines Matching refs:async

48 export async function test(t) {
54 t.beforeAll(async () => {
75 t.beforeEach(async () => {
86 t.afterEach(async () => {
92 t.it('sets high preset successfully', async () => {
96 t.it('sets low preset successfully', async () => {
100 t.it('sets custom preset successfully', async () => {
143 t.it('sets a function that gets called when status updates', async () => {
158 t.it('sets a function that gets called when recording finishes', async () => {
209 t.afterEach(async () => {
215 t.it('returns a list of available recording inputs', async () => {
224 t.afterEach(async () => {
229 t.it('returns the currently-selected recording input', async () => {
238 t.afterEach(async () => {
243 t.it('sets the recording input', async () => {
255 t.afterEach(async () => {
260 t.it('starts a clean recording', async () => {
267 t.it('starts a paused recording', async () => {
281 t.it('pauses the recording', async () => {
294 t.it('returns null before the recording is prepared', async () => {
298 t.it('returns a string once the recording is prepared', async () => {
330 t.it('fails if called before the recording is prepared', async () => {
341 t.it('fails if called before the recording is started', async () => {
354 t.it('fails if called before the recording is recording', async () => {
368 t.it('returns a sound object once the recording is done', async () => {
374 setTimeout(async () => {
398 t.it('raises an error when the recording is in an unreadable format', async () => {
404 setTimeout(async () => {
422 t.it('fails if called before the recording is prepared', async () => {
433 t.it('fails if called before the recording is started', async () => {
446 t.it('fails if called before the recording is recording', async () => {
460 t.it('returns a sound object once the recording is done', async () => {
466 setTimeout(async () => {
491 t.it('raises an error when the recording is in an unreadable format', async () => {
497 setTimeout(async () => {
515 t.afterEach(async () => {
520 t.it('creates and starts recording', async () => {