Skip to content

Commit

Permalink
style: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
CptSchnitz committed Jul 10, 2024
1 parent 4418ce6 commit f144eb5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ export function getOptions(): BaseOptions {

debug('returning options');
return baseOptions;
}
}
2 changes: 1 addition & 1 deletion tests/config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"ssl": {
"enabled": false
}
}
}
4 changes: 3 additions & 1 deletion tests/httpClient.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ describe('httpClient', () => {
});

it('should throw an error if the request fails', async () => {
client.intercept({ path: '/config/name/1?shouldDereference=true', method: 'GET' }).reply(StatusCodes.INTERNAL_SERVER_ERROR, 'Internal Server Error');
client
.intercept({ path: '/config/name/1?shouldDereference=true', method: 'GET' })
.reply(StatusCodes.INTERNAL_SERVER_ERROR, 'Internal Server Error');

await expect(getRemoteConfig('name', 1)).rejects.toThrow('Failed to fetch');
});
Expand Down
4 changes: 2 additions & 2 deletions tests/validator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ describe('validator', () => {
const data = {};

const action = () => validate(ajvOptionsValidator, schema, data);
expect(action).toThrow()

expect(action).toThrow();
});
});
});

0 comments on commit f144eb5

Please sign in to comment.