Skip to content

Commit

Permalink
fix: 🐛 Repaired login (kolplattformen#11)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: 🧨 Major update of peer dependency embedded-api
  • Loading branch information
JohanObrink authored Mar 11, 2021
1 parent 9fa63e8 commit 83a4737
Show file tree
Hide file tree
Showing 4 changed files with 652 additions and 364 deletions.
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/__mocks__/@skolplattformen/embedded-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
1 change: 0 additions & 1 deletion src/fake.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ describe('hooks with fake data', () => {
expect(result.current.data.length).not.toBeGreaterThan(1)
})
})

})
it('handles reloads', async () => {
await act(async () => {
Expand Down
Loading

0 comments on commit 83a4737

Please sign in to comment.