-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor eudr related endpoints to eudr controller
- Loading branch information
Showing
11 changed files
with
232 additions
and
111 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
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
6 changes: 3 additions & 3 deletions
6
.../admin-regions-eudr-smart-filters.spec.ts → ...2e/eudr/eudr-admin-region-filters.spec.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
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,28 @@ | ||
import { EUDRTestManager } from './fixtures'; | ||
|
||
describe('GeoRegions Filters (e2e)', () => { | ||
let testManager: EUDRTestManager; | ||
|
||
beforeAll(async () => { | ||
testManager = await EUDRTestManager.load(); | ||
}); | ||
beforeEach(async () => { | ||
await testManager.refreshState(); | ||
}); | ||
|
||
afterEach(async () => { | ||
await testManager.clearDatabase(); | ||
}); | ||
|
||
afterAll(async () => { | ||
await testManager.close(); | ||
}); | ||
describe('EUDR Geo Regions Filters', () => { | ||
it('should only get geo-regions that are part of EUDR data', async () => { | ||
await testManager.GivenGeoRegionsOfSourcingLocations(); | ||
const { eudrGeoRegions } = await testManager.GivenEUDRGeoRegions(); | ||
const response = await testManager.WhenIRequestEUDRGeoRegions(); | ||
testManager.ThenIShouldOnlyReceiveCorrespondingGeoRegions(eudrGeoRegions); | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.