Lines Matching refs:async
9 export async function test(t) {
26 t.describe('isTaskRegisteredAsync()', async () => {
27 t.beforeAll(async () => {
31 t.it('returns true for registered tasks', async () => {
35 t.it('returns false for unregistered tasks', async () => {
39 t.afterAll(async () => {
44 t.describe('getTaskOptionsAsync()', async () => {
47 t.it('returns null for unregistered tasks', async () => {
52 t.it('returns correct options after register', async () => {
58 t.it('returns null when unregistered', async () => {
65 t.describe('getRegisteredTasksAsync()', async () => {
68 t.it('returns empty array if there are no tasks', async () => {
74 t.it('returns correct array after registering the task', async () => {
90 t.afterAll(async () => {
96 t.it('unregisters tasks correctly', async () => {
106 t.it('should reject when trying to unregister non-existing tasks', async () => {