-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Release v2.2.3 - to stage (#1426)"
This reverts commit 3f9b66f.
- Loading branch information
1 parent
3f9b66f
commit a956279
Showing
68 changed files
with
579 additions
and
826 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
packages/app/src/__deprecated__/main/utils/github-instance.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* Copyright (c) Mudita sp. z o.o. All rights reserved. | ||
* For licensing, see https://github.com/mudita/mudita-center/blob/master/LICENSE.md | ||
*/ | ||
|
||
import axios from "axios" | ||
|
||
// It's required only for development when API rate limits may exceed | ||
// https://docs.github.com/en/rest/overview/resources-in-the-rest-api#rate-limiting | ||
const githubToken = process.env.OS_UPDATE_SERVER_ACCESS_TOKEN | ||
|
||
export const githubInstance = axios.create({ | ||
headers: { | ||
...(githubToken ? { Authorization: `token ${githubToken}` } : {}), | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,6 +125,10 @@ const onPhoneNumberSelect = jest.fn() | |
const onContactSelect = jest.fn() | ||
const onClose = jest.fn() | ||
|
||
beforeAll(() => { | ||
mockAllIsIntersecting(true) | ||
}) | ||
|
||
describe("Functionality: open/close", () => { | ||
test("Modal is closed when `open` field is equal to `false`", () => { | ||
const { queryByTestId } = render({ | ||
|
@@ -272,8 +276,6 @@ describe("Functionality: contacts list", () => { | |
withPhoneNumberOnly: false, | ||
}) | ||
|
||
mockAllIsIntersecting(true) | ||
|
||
// AUTO DISABLED - fix me if you like :) | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
const contactListProps = contactSimpleListSpy.mock | ||
|
@@ -282,6 +284,31 @@ describe("Functionality: contacts list", () => { | |
expect(contactListProps.contacts.flat().length).toEqual(5) | ||
expect(contactListProps.contacts.flat()).toMatchInlineSnapshot(` | ||
Array [ | ||
Object { | ||
"email": "[email protected]", | ||
"firstAddressLine": "4929 Pine Garden Lane", | ||
"firstName": "John", | ||
"id": "1", | ||
"lastName": "Doe", | ||
"note": "", | ||
"primaryPhoneNumber": "123 456 789", | ||
"secondAddressLine": "Atlanta, GA, 30339, USA", | ||
"secondaryPhoneNumber": "32 123 44 55", | ||
}, | ||
Object { | ||
"blocked": false, | ||
"email": "[email protected]", | ||
"favourite": false, | ||
"firstAddressLine": "Malczewskiego 3, Warszawa", | ||
"firstName": "Sławomir", | ||
"ice": false, | ||
"id": "2", | ||
"lastName": "Borewicz", | ||
"note": "sapiente rem dignissimos sunt", | ||
"primaryPhoneNumber": "+71 195 069 214", | ||
"secondAddressLine": "", | ||
"secondaryPhoneNumber": "", | ||
}, | ||
Object { | ||
"blocked": false, | ||
"email": "", | ||
|
@@ -310,31 +337,6 @@ describe("Functionality: contacts list", () => { | |
"secondAddressLine": "", | ||
"secondaryPhoneNumber": "", | ||
}, | ||
Object { | ||
"blocked": false, | ||
"email": "[email protected]", | ||
"favourite": false, | ||
"firstAddressLine": "Malczewskiego 3, Warszawa", | ||
"firstName": "Sławomir", | ||
"ice": false, | ||
"id": "2", | ||
"lastName": "Borewicz", | ||
"note": "sapiente rem dignissimos sunt", | ||
"primaryPhoneNumber": "+71 195 069 214", | ||
"secondAddressLine": "", | ||
"secondaryPhoneNumber": "", | ||
}, | ||
Object { | ||
"email": "[email protected]", | ||
"firstAddressLine": "4929 Pine Garden Lane", | ||
"firstName": "John", | ||
"id": "1", | ||
"lastName": "Doe", | ||
"note": "", | ||
"primaryPhoneNumber": "123 456 789", | ||
"secondAddressLine": "Atlanta, GA, 30339, USA", | ||
"secondaryPhoneNumber": "32 123 44 55", | ||
}, | ||
Object { | ||
"blocked": false, | ||
"email": "", | ||
|
@@ -374,6 +376,31 @@ describe("Functionality: contacts list", () => { | |
expect(contactListProps.contacts.flat().length).toEqual(4) | ||
expect(contactListProps.contacts.flat()).toMatchInlineSnapshot(` | ||
Array [ | ||
Object { | ||
"email": "[email protected]", | ||
"firstAddressLine": "4929 Pine Garden Lane", | ||
"firstName": "John", | ||
"id": "1", | ||
"lastName": "Doe", | ||
"note": "", | ||
"primaryPhoneNumber": "123 456 789", | ||
"secondAddressLine": "Atlanta, GA, 30339, USA", | ||
"secondaryPhoneNumber": "32 123 44 55", | ||
}, | ||
Object { | ||
"blocked": false, | ||
"email": "[email protected]", | ||
"favourite": false, | ||
"firstAddressLine": "Malczewskiego 3, Warszawa", | ||
"firstName": "Sławomir", | ||
"ice": false, | ||
"id": "2", | ||
"lastName": "Borewicz", | ||
"note": "sapiente rem dignissimos sunt", | ||
"primaryPhoneNumber": "+71 195 069 214", | ||
"secondAddressLine": "", | ||
"secondaryPhoneNumber": "", | ||
}, | ||
Object { | ||
"blocked": false, | ||
"email": "", | ||
|
@@ -402,31 +429,6 @@ describe("Functionality: contacts list", () => { | |
"secondAddressLine": "", | ||
"secondaryPhoneNumber": "", | ||
}, | ||
Object { | ||
"blocked": false, | ||
"email": "[email protected]", | ||
"favourite": false, | ||
"firstAddressLine": "Malczewskiego 3, Warszawa", | ||
"firstName": "Sławomir", | ||
"ice": false, | ||
"id": "2", | ||
"lastName": "Borewicz", | ||
"note": "sapiente rem dignissimos sunt", | ||
"primaryPhoneNumber": "+71 195 069 214", | ||
"secondAddressLine": "", | ||
"secondaryPhoneNumber": "", | ||
}, | ||
Object { | ||
"email": "[email protected]", | ||
"firstAddressLine": "4929 Pine Garden Lane", | ||
"firstName": "John", | ||
"id": "1", | ||
"lastName": "Doe", | ||
"note": "", | ||
"primaryPhoneNumber": "123 456 789", | ||
"secondAddressLine": "Atlanta, GA, 30339, USA", | ||
"secondaryPhoneNumber": "32 123 44 55", | ||
}, | ||
] | ||
`) | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.