-
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 pull request #1025 from MTES-MCT/fix-add-housing
Fix a bug where housings could not be added
- Loading branch information
Showing
28 changed files
with
542 additions
and
293 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
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,24 @@ | ||
import { Occupancy, OCCUPANCY_VALUES } from '../Occupancy'; | ||
import { toOccupancy } from '../DatafoncierHousing'; | ||
|
||
describe('DatafoncierHousing', () => { | ||
describe('toOccupancy', () => { | ||
it.each(OCCUPANCY_VALUES)('should return %s', (ccthp) => { | ||
const actual = toOccupancy(ccthp); | ||
|
||
expect(actual).toBe(ccthp); | ||
}); | ||
|
||
it(`should return ${Occupancy.UNKNOWN} when ccthp is null`, () => { | ||
const actual = toOccupancy(null); | ||
|
||
expect(actual).toBe(Occupancy.UNKNOWN); | ||
}); | ||
|
||
it(`should return ${Occupancy.UNKNOWN} otherwise`, () => { | ||
const actual = toOccupancy('test'); | ||
|
||
expect(actual).toBe(Occupancy.UNKNOWN); | ||
}); | ||
}); | ||
}); |
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.