Skip to content

Commit

Permalink
chore(env): tests
Browse files Browse the repository at this point in the history
  • Loading branch information
seth2810 committed Jul 28, 2024
1 parent b2515b0 commit 3cfd40b
Show file tree
Hide file tree
Showing 3 changed files with 3,051 additions and 197 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
"upload": "yarn lint && yarn build && yarn npm publish && git push && git push --tags && gh release create",
"lint": "eslint \"src/**/*.ts\"",
"lint:tsc": "tsc --noEmit -p .",
"docs": "typedoc --excludePrivate --excludeProtected --name \"spotify.js documentation\" --out docs src/index.ts"
"docs": "typedoc --excludePrivate --excludeProtected --name \"spotify.js documentation\" --out docs src/index.ts",
"test": "jest"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "^20.14.10",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.16.0",
Expand All @@ -28,6 +30,7 @@
"eslint-plugin-jsdoc": "^48.5.2",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-unicorn": "^54.0.0",
"jest": "^29.7.0",
"prettier": "^3.3.2",
"typedoc": "^0.26.3",
"typescript": "^5.5.3"
Expand Down
21 changes: 21 additions & 0 deletions src/lib/http/HttpManager.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
describe('HttpManager', () => {
describe('auth', () => {
it('should use access token when it is active', async () => {});

it('should refresh access token before request when it is expired', async () => {});

it('should request new access token when refresh token is not specified', async () => {});

it('should throw error when unable to issue access token', async () => {});
});

describe('retries', () => {});

describe('rate limit', () => {});

describe('errors', () => {});

describe('methods', () => {
it('should return 200 in case of success', () => {});
});
});
Loading

0 comments on commit 3cfd40b

Please sign in to comment.