Skip to content

Commit

Permalink
[RB-184] Get prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
damon.shi committed Jan 28, 2022
1 parent 6fea014 commit 21b679e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/vehiclelinkApi.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ describe('requestOptionsHandling', () => {
});

it('should abort request', (done) => {
new VehiclelinkApi(host, bearerToken).fetchSegments({ signal })
new VehiclelinkApi(host, bearerToken)
.fetchSegments({ signal })
.catch((err) => {
expect(err).toEqual(new Error('The user aborted a request.'));
done();
Expand Down

0 comments on commit 21b679e

Please sign in to comment.