Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 committed May 1, 2023
1 parent 7f2a6dc commit 39fbba1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/proxy-service/src/flattenPromise.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ describe('flattenPromise', () => {
});

it('should convert shallow Promise<Object> to DeepAsync<Object>', async () => {
const objectPromise = Promise.resolve({
const Object = {
additionalIncrement: 1,
add(x: number, y: number): number {
return x + y + this.additionalIncrement;
},
});
};
const objectPromise = Promise.resolve(Object);

const object = flattenPromise(objectPromise);
const actual = await object.add(1, 2);
Expand Down

0 comments on commit 39fbba1

Please sign in to comment.