-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
dc789a7
commit b63c258
Showing
10 changed files
with
91 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ exports[`DeveloperSubmitApp should match a snapshot 1`] = ` | |
"screen3ImageUrl": "", | ||
"screen4ImageUrl": "", | ||
"screen5ImageUrl": "", | ||
"signoutUris": "", | ||
"summary": "", | ||
"supportEmail": "", | ||
"telephone": "", | ||
|
@@ -93,6 +94,7 @@ exports[`DeveloperSubmitApp should match submit revision form snapshot 1`] = ` | |
], | ||
"screen1ImageUrl": "https://reapit-app-store-app-media.s3.eu-west-2.amazonaws.com/c4a36706-aa44-47f9-9fb6-9053eef4e581.png", | ||
"screen2ImageUrl": "https://reapit-app-store-app-media.s3.eu-west-2.amazonaws.com/65bd3b97-e78c-41cd-b75f-e06e1d2f00df.png", | ||
"signoutUris": "", | ||
"summary": "vitae elementum curabitur vitae nunc sed velit eget gravida cum sociis natoque!!", | ||
"supportEmail": "[email protected]", | ||
"telephone": "0113 288 2900", | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -19,6 +19,7 @@ describe('submitAppValidation', () => { | |
summary: '', | ||
scopes: [], | ||
redirectUris: '', | ||
signoutUris: '', | ||
} | ||
|
||
const validateRequiredKeys = [ | ||
|
@@ -32,6 +33,7 @@ describe('submitAppValidation', () => { | |
'screen1ImageUrl', | ||
'summary', | ||
'redirectUris', | ||
'signoutUris', | ||
] | ||
|
||
const output = {} | ||
|
@@ -58,6 +60,7 @@ describe('submitAppValidation', () => { | |
summary: 'test', | ||
scopes: [], | ||
redirectUris: 'https://google.com,https://twitter.com,http://localhost:8080', | ||
signoutUris: 'http://localhost:8080', | ||
} | ||
|
||
expect(validate(input)).toEqual({ | ||
|
@@ -81,13 +84,38 @@ describe('submitAppValidation', () => { | |
summary: 'test', | ||
scopes: [], | ||
redirectUris: 'http://google.com,https://twitter.com,http://localhost:8080', | ||
signoutUris: 'http://localhost:8080', | ||
} | ||
|
||
expect(validate(input)).toEqual({ | ||
redirectUris: 'Invalid redirect uri(s)', | ||
}) | ||
}) | ||
|
||
it('validate sign out uri(s) field ', () => { | ||
const input: CustomCreateAppModel = { | ||
screen4ImageUrl: 'test', | ||
screen3ImageUrl: 'test', | ||
screen2ImageUrl: 'test', | ||
screen1ImageUrl: 'test', | ||
name: 'test', | ||
telephone: 'test', | ||
supportEmail: '[email protected]', | ||
launchUri: 'test', | ||
iconImageUrl: 'test', | ||
homePage: 'test', | ||
description: 'test', | ||
summary: 'test', | ||
scopes: [], | ||
redirectUris: 'https://google.com,https://twitter.com,http://localhost:8080', | ||
signoutUris: 'https://localhost:8080', | ||
} | ||
|
||
expect(validate(input)).toEqual({ | ||
signoutUris: 'Invalid sign out uri(s)', | ||
}) | ||
}) | ||
|
||
it('return empty object it everything is valid', () => { | ||
const input: CustomCreateAppModel = { | ||
screen4ImageUrl: 'test', | ||
|
@@ -104,6 +132,7 @@ describe('submitAppValidation', () => { | |
summary: 'test', | ||
scopes: [], | ||
redirectUris: 'https://google.com,https://twitter.com,http://localhost:8080', | ||
signoutUris: 'http://localhost:8080', | ||
} | ||
|
||
expect(validate(input)).toEqual({}) | ||
|
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