Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Use fail(err) rather than done(err) (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Coleman authored and James Baxley committed Oct 12, 2016
1 parent 5f5afbb commit 62261a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/react-web/client/graphql/queries-1.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ describe('queries', () => {

setTimeout(() => {
if (!queryExecuted) { done(); return; }
done(new Error('query ran even though skip present'));
fail(new Error('query ran even though skip present'));
}, 25);
});

Expand All @@ -366,7 +366,7 @@ describe('queries', () => {

setTimeout(() => {
if (!queryExecuted) { done(); return; }
done(new Error('query ran even though skip present'));
fail(new Error('query ran even though skip present'));
}, 25);
});

Expand Down Expand Up @@ -433,7 +433,7 @@ describe('queries', () => {

setTimeout(() => {
if (!queryExecuted) { done(); return; }
done(new Error('query ran even though skip present'));
fail(new Error('query ran even though skip present'));
}, 25);
});

Expand All @@ -459,7 +459,7 @@ describe('queries', () => {

setTimeout(() => {
if (!queryExecuted) { done(); return; }
done(new Error('query ran even though skip present'));
fail(new Error('query ran even though skip present'));
}, 25);
});

Expand Down
2 changes: 1 addition & 1 deletion test/react-web/client/graphql/shared-operations-1.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ describe('shared operations', () => {

setTimeout(() => {
if (!queryExecuted) { done(); return; }
done(new Error('query ran even though skip present'));
fail(new Error('query ran even though skip present'));
}, 25);
});

Expand Down

0 comments on commit 62261a7

Please sign in to comment.