Skip to content

Commit

Permalink
fixup(liquidationVisibility): Remove allValuesSetteled()
Browse files Browse the repository at this point in the history
Refs: #35
  • Loading branch information
anilhelvaci committed Jul 15, 2024
1 parent 7c9d989 commit 3699de9
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions packages/internal/test/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
forever,
deeplyFulfilledObject,
synchronizedTee,
allValuesSettled,
} from '../src/utils.js';

test('deeplyFulfilledObject', async t => {
Expand Down Expand Up @@ -218,17 +217,3 @@ test('synchronizedTee - consume synchronized', async t => {
t.deepEqual(output1, sourceData.slice(0, i));
t.deepEqual(output2, sourceData.slice(0, i));
});

test('allValuesSettled', async t => {
const result = await allValuesSettled({
promiseOne: Promise.resolve('I am a happy promise - One'),
promiseTwo: Promise.reject(new Error('I am an upset promise')),
promiseThree: Promise.resolve('I am a happy promise - Three'),
});

t.deepEqual(result, {
promiseOne: 'I am a happy promise - One',
promiseTwo: undefined,
promiseThree: 'I am a happy promise - Three',
});
});

0 comments on commit 3699de9

Please sign in to comment.