Skip to content

Commit

Permalink
fix(index.spec.mjs): add t.pass(); to fix problem with windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
miniben-90 committed May 12, 2024
1 parent 750d498 commit 06a72bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions __test__/index.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ test('activeWindow', (t) => {
console.timeEnd('activeWindow');
t.log(data);
compareStruct(t, data);
t.pass();
})

test('openWindows', (t) => {
Expand All @@ -49,6 +50,7 @@ test('openWindows', (t) => {
for (const data of list) {
compareStruct(t, data);
}
t.pass();
})

test('subscribeActiveWindow', async (t) => {
Expand Down Expand Up @@ -97,6 +99,7 @@ test('subscribeActiveWindow', async (t) => {
compareStruct(t, data1);
compareStruct(t, data2);
compareStruct(t, data3);
t.pass();
} catch (error) {
unsubscribeAllActiveWindow();
throw error;
Expand Down Expand Up @@ -142,6 +145,7 @@ test('unsubscribeAllActiveWindow', async (t) => {
compareStruct(t, data2);
compareStruct(t, data3);
unsubscribeAllActiveWindow();
t.pass();
} catch (error) {
unsubscribeAllActiveWindow();
throw error;
Expand All @@ -154,6 +158,7 @@ test('activeWindowAsync', async (t) => {
console.timeEnd('activeWindowAsync');
t.log(data);
compareStruct(t, data);
t.pass();
})

test('openWindowsAsync', async (t) => {
Expand All @@ -164,4 +169,5 @@ test('openWindowsAsync', async (t) => {
for (const data of list) {
compareStruct(t, data);
}
t.pass();
})

0 comments on commit 06a72bd

Please sign in to comment.