fix: 🐛 Repaired login (#11)

BREAKING CHANGE: 🧨 Major update of peer dependency embedded-api
This commit is contained in:
Johan Öbrink 2021-03-11 10:40:10 +01:00 committed by GitHub
parent 9fa63e84fe
commit 83a4737594
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 653 additions and 365 deletions

View File

@ -23,30 +23,30 @@
"redux": "^4.0.5"
},
"peerDependencies": {
"@skolplattformen/embedded-api": "^1.3.0",
"@skolplattformen/embedded-api": "^2.0.0",
"react": "^16.11.0"
},
"devDependencies": {
"@babel/preset-env": "^7.12.13",
"@babel/preset-env": "^7.13.10",
"@babel/preset-react": "^7.12.13",
"@babel/preset-typescript": "^7.12.13",
"@skolplattformen/embedded-api": "^1.3.0",
"@babel/preset-typescript": "^7.13.0",
"@skolplattformen/embedded-api": "^2.0.0",
"@testing-library/jest-dom": "^5.11.9",
"@testing-library/react": "^11.2.5",
"@testing-library/react-hooks": "^5.0.3",
"@testing-library/react-hooks": "^5.1.0",
"@types/jest": "^26.0.20",
"@types/react": "^16.14.3",
"@types/react-redux": "^7.1.16",
"@typescript-eslint/eslint-plugin": "^4.4.1",
"@typescript-eslint/eslint-plugin": "^4.17.0",
"babel-jest": "^26.6.3",
"eslint": "^7.19.0",
"eslint-config-airbnb-typescript": "^12.0.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jest": "^24.1.3",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-react": "^7.20.3",
"eslint-plugin-react-hooks": "^4.0.8",
"events": "^3.2.0",
"eslint": "^7.21.0",
"eslint-config-airbnb-typescript": "^12.3.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jest": "^24.2.1",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.22.0",
"eslint-plugin-react-hooks": "^4.2.0",
"events": "^3.3.0",
"jest": "^26.6.3",
"react": "^16.11.0",
"react-dom": "^16.11.0",

View File

@ -10,7 +10,7 @@ const createApi = () => ({
on: jest.fn().mockImplementation((...args) => emitter.on(...args)),
off: jest.fn().mockImplementation((...args) => emitter.off(...args)),
getSessionCookie: jest.fn(),
getSession: jest.fn(),
getPersonalNumber: jest.fn(),
getCalendar: jest.fn(),

View File

@ -164,7 +164,6 @@ describe('hooks with fake data', () => {
expect(result.current.data.length).not.toBeGreaterThan(1)
})
})
})
it('handles reloads', async () => {
await act(async () => {

987
yarn.lock

File diff suppressed because it is too large Load Diff