-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
673ba7e
commit a53c069
Showing
23 changed files
with
132 additions
and
202 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,6 @@ jobs: | |
MYSQL_DATABASE: test | ||
MYSQL_PORT: 3306 | ||
DATABASE_URL: mysql:https://root:[email protected]:3306/test | ||
TEST_DATABASE_URL: mysql:https://root:[email protected]:3306/test | ||
CONVERTKIT_API_KEY: api_key | ||
CONVERTKIT_FORM_ID: form_id | ||
outputs: | ||
|
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
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 |
---|---|---|
|
@@ -26,7 +26,6 @@ describe('Newsletter service', () => { | |
}); | ||
|
||
test('Add the email address to the newsletter subscribers', async () => { | ||
// GIVEN | ||
const emailToSubscribe = '[email protected]'; | ||
const tags = ['snipcode']; | ||
const formId = 'formId'; | ||
|
@@ -43,17 +42,14 @@ describe('Newsletter service', () => { | |
}, | ||
}); | ||
|
||
// WHEN | ||
await newsletterService.subscribe(emailToSubscribe, tags); | ||
|
||
// THEN | ||
expect(scope.isDone()).toBe(true); | ||
|
||
nock.cleanAll(); | ||
}); | ||
|
||
test('Handle HTTP error when the request to add the email address to the newsletter subscribers fails', async () => { | ||
// GIVEN | ||
const emailToSubscribe = '[email protected]'; | ||
const tags = ['snipcode']; | ||
const formId = 'formId'; | ||
|
@@ -68,8 +64,6 @@ describe('Newsletter service', () => { | |
message: 'Wrong api key provided!', | ||
}); | ||
|
||
// WHEN | ||
// THEN | ||
const caughtErrorsFormatted = { | ||
data: { | ||
message: 'Wrong api key provided!', | ||
|
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
Oops, something went wrong.