This repository has been archived by the owner on Dec 16, 2021. It is now read-only.
-
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.
Merge branch 'master' of https://github.com/nhs-digital-gp-it-futures…
…/public-browse into feature/12938-investigate-how-to-write-integration-tests
- Loading branch information
Showing
33 changed files
with
7,929 additions
and
2,656 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
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,48 @@ | ||
import { getEndpoint } from './endpoints'; | ||
|
||
describe('Endpoints', () => { | ||
describe('getSolutionListDataEndpoint', () => { | ||
it('should return "/api/v1/Solutions/Foundation" when filterType is "all"', () => { | ||
const result = getEndpoint({ | ||
endpointLocator: 'getSolutionListData', | ||
options: { filterType: 'all' }, | ||
}); | ||
|
||
expect(result).toBe('http://localhost:5100/api/v1/Solutions'); | ||
}); | ||
|
||
it('should return "/api/v1/Solutions/Foundation" when filterType is "foundation"', () => { | ||
const result = getEndpoint({ | ||
endpointLocator: 'getSolutionListData', | ||
options: { filterType: 'foundation' }, | ||
}); | ||
|
||
expect(result).toBe('http://localhost:5100/api/v1/Solutions/Foundation'); | ||
}); | ||
|
||
it('should return undefined when filterType is not valid', () => { | ||
const result = getEndpoint({ | ||
endpointLocator: 'getSolutionListData', | ||
options: { filterType: 'i do not exist' }, | ||
}); | ||
|
||
expect(result).toBe(undefined); | ||
}); | ||
|
||
describe('solutions?frameworkId', () => { | ||
test.each` | ||
key | expected | ||
${'NHSDGP001'} | ${'http://localhost:5100/api/v1/Solutions?frameworkId=NHSDGP001'} | ||
${'DFOCVC001'} | ${'http://localhost:5100/api/v1/Solutions?frameworkId=DFOCVC001'} | ||
`('should return "$expected" when filterType is "$key"', ({ key, expected }) => { | ||
const result = getEndpoint({ | ||
endpointLocator: 'getSolutionListData', | ||
options: { filterType: key }, | ||
}); | ||
|
||
expect(result).toBe(expected); | ||
}); | ||
}); | ||
}); | ||
}); |
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"title": "Catalogue Solutions – Capabilities selector", | ||
"title": "Catalogue Solutions on the GP IT Futures framework – Capability selector", | ||
"description": "Select the Capabilities that match the needs of your organisation. Any Catalogue Solutions found will have proven they can address these needs and, in some cases, will do even more." | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"title": "Compare all Catalogue Solutions", | ||
"description": "Use our compare document to help find what you’re looking for. It gives an overview of all the Catalogue Solutions available and lets you filter them by the Capabilities they offer.", | ||
"title": "Compare all Catalogue Solutions on the GP IT Futures framework", | ||
"description": "Use our compare document to help find what you’re looking for. It gives an overview of all the Catalogue Solutions available on the GP IT Futures framework and lets you filter them by the Capabilities they offer.", | ||
"compareButtonText": "Compare Solutions (.xlsx)", | ||
"backLinkText": "Back" | ||
} |
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.