Skip to content

Commit

Permalink
test(notifier): Reduce nesting for better actual vs. expected diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Apr 16, 2023
1 parent df8c6e7 commit 0e926a7
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions packages/notifier/test/test-subscriber-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,15 @@ test('subscription observeIteration on generic representative', async t => {
test('subscribe to subscriptionIterator success example', async t => {
const { publication, subscription } = makeSubscriptionKit();
paula(publication);
const log = await carol(subscription);
const [log1, log2] = await carol(subscription);

t.deepEqual(log, [
[
['non-final', 'a'],
['non-final', 'b'],
['finished', 'done'],
],
[
['non-final', 'b'],
['finished', 'done'],
],
t.deepEqual(log1, [
['non-final', 'a'],
['non-final', 'b'],
['finished', 'done'],
]);
t.deepEqual(log2, [
['non-final', 'b'],
['finished', 'done'],
]);
});

0 comments on commit 0e926a7

Please sign in to comment.