Skip to content

Commit

Permalink
Updated Packages & Added No Content Test
Browse files Browse the repository at this point in the history
  • Loading branch information
maganuk committed Apr 17, 2024
1 parent 8df607b commit 277e22b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@monocloud/admin-js",
"version": "0.9.4",
"version": "0.9.6",
"description": "MonoCloud Admin JavaScript SDK",
"keywords": [
"monocloud",
Expand Down Expand Up @@ -36,7 +36,7 @@
"test": "eslint tests --fix --quiet && jest"
},
"dependencies": {
"@monocloud/sdk-js-core": "0.2.4"
"@monocloud/sdk-js-core": "0.2.7"
},
"devDependencies": {
"@types/jest": "29.5.12",
Expand Down
12 changes: 12 additions & 0 deletions tests/sdk.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,4 +267,16 @@ describe('MonoCloud Admin SDK Tests', () => {
);
}
});

test('No content should handle correctly', async () => {
nockInst
.delete('/api/clients/1')
.reply(204, {}, { 'Content-Type': 'application/problem+json' });

const result = await client.clients.deleteClient('1');

nockInst.done();

expect(result.status).toBe(204);
});
});

0 comments on commit 277e22b

Please sign in to comment.