Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
awlayton committed Apr 20, 2022
1 parent 98344d4 commit 866a4fd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
9 changes: 5 additions & 4 deletions test/get.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,15 @@ for (const connection of ['ws', 'http'] as const) {
t.assert(putResp.headers['x-oada-rev']);

await t.throwsAsync(
getAxios(
`/bookmarks/${testName}/sometest4`,
{ 'X-OADA-Ensure-Link': 'versioned' }
),
getAxios(`/bookmarks/${testName}/sometest4`, {
'X-OADA-Ensure-Link': 'versioned',
})
/*
{
code: '400',
message: 'X-OADA-Ensure-Link not allowed for this method',
}
*/
);
});

Expand Down
10 changes: 5 additions & 5 deletions test/put.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,15 @@ for (const connection of ['ws', 'http'] as const) {
test(`${connection}: Should error when 'X-OADA-Ensure-Link' contains an unsupported value`, async (t) => {
const { testName } = t.context as Context;
await t.throwsAsync(
putAxios(
{ somedata: 456 },
`/bookmarks/${testName}/sometest4`,
{ 'X-OADA-Ensure-Link': 'unsupportedValue' }
),
putAxios({ somedata: 456 }, `/bookmarks/${testName}/sometest4`, {
'X-OADA-Ensure-Link': 'unsupportedValue',
})
/*
{
code: '400',
message: 'Unsupported value for X-OADA-Ensure-Link',
}
*/
);
});

Expand Down

0 comments on commit 866a4fd

Please sign in to comment.