Skip to content

Commit

Permalink
Fix version, tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ckcr4lyf committed Dec 25, 2024
1 parent ec948a3 commit f0e9699
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions __tests__/qbittorrent/auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ test('loginV2', async t => {
password: 'adminadmin'
}

const scope = nock(fakeSettings.url).post('/api/v2/auth/login', {
const scope = nock(fakeSettings.url);

scope.post('/api/v2/auth/login', {
username: 'admin',
password: 'adminadmin'
}).reply(200, {}, {
'set-cookie': 'SID=1234'
});


scope.get('/api/v2/app/version').reply(200, 'v4');
const api = await loginV2(fakeSettings);

//@ts-ignore - client is private but we want to access for testing
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qbit-race",
"version": "2.0.0-alpha.18",
"version": "2.0.0-alpha.19",
"description": "Qbit utilities for racing",
"main": "./bin/index.js",
"type": "module",
Expand Down

0 comments on commit f0e9699

Please sign in to comment.