-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: courriels field name and missing etapes numeriques label (#58)
- Loading branch information
1 parent
494d4ab
commit 7e1c058
Showing
12 changed files
with
26 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ describe('contact model', (): void => { | |
it('should create a valid contact', (): void => { | ||
const contactData: ContactToValidate = { | ||
telephone: '+33145896378', | ||
courriel: [Courriel('[email protected]')], | ||
courriels: [Courriel('[email protected]')], | ||
site_web: [Url('http://www.cartographienationale.fr')] | ||
}; | ||
|
||
|
@@ -30,7 +30,7 @@ describe('contact model', (): void => { | |
|
||
it('should create a valid contact with only courriel property', (): void => { | ||
const contactData: ContactToValidate = { | ||
courriel: [Courriel('[email protected]')] | ||
courriels: [Courriel('[email protected]')] | ||
}; | ||
|
||
const contact: Contact = Contact(contactData); | ||
|
@@ -41,7 +41,7 @@ describe('contact model', (): void => { | |
it('should create a valid contact with a phone from French Guiana', (): void => { | ||
const contactData: ContactToValidate = { | ||
telephone: '+594694020905', | ||
courriel: [Courriel('[email protected]')], | ||
courriels: [Courriel('[email protected]')], | ||
site_web: [Url('https://www.facebook.com/YenkumuLutuPapaichton/')] | ||
}; | ||
|
||
|
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 |
---|---|---|
|
@@ -178,7 +178,7 @@ describe('from schema data inclusion', (): void => { | |
typologies: Typologies([Typologie.TIERS_LIEUX]), | ||
contact: Contact({ | ||
telephone: '+33180059880', | ||
courriel: [Courriel('[email protected]'), Courriel('[email protected]')], | ||
courriels: [Courriel('[email protected]'), Courriel('[email protected]')], | ||
site_web: [Url('https://www.laquincaillerie.tl/'), Url('https://m.facebook.com/laquincaillerienumerique/')] | ||
}), | ||
horaires: 'Mo-Fr 09:00-12:00,14:00-18:30; Sa 08:30-12:00', | ||
|
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 |
---|---|---|
|
@@ -92,7 +92,7 @@ describe('to schema data.inclusion', (): void => { | |
contact: Contact({ | ||
site_web: [Url('https://www.asso-gonzalez.net/'), Url('https://www.facebook.com/asso-gonzalez.net/')], | ||
telephone: '0102030405', | ||
courriel: [Courriel('[email protected]'), Courriel('[email protected]')] | ||
courriels: [Courriel('[email protected]'), Courriel('[email protected]')] | ||
}), | ||
horaires: 'Mo-Fr 10:00-20:00 "sur rendez-vous"; PH off', | ||
presentation: { | ||
|
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 |
---|---|---|
|
@@ -114,7 +114,7 @@ describe('from schema lieux de mediation numerique', (): void => { | |
longitude: 5.41423, | ||
typologie: 'TIERS_LIEUX', | ||
telephone: '+33180059880', | ||
courriel: '[email protected]', | ||
courriels: ['[email protected]', '[email protected]'].join('|'), | ||
site_web: 'https://www.laquincaillerie.tl/|https://m.facebook.com/laquincaillerienumerique/', | ||
horaires: 'Mo-Fr 09:00-12:00,14:00-18:30; Sa 08:30-12:00', | ||
presentation_resume: | ||
|
@@ -191,7 +191,7 @@ describe('from schema lieux de mediation numerique', (): void => { | |
typologies: Typologies([Typologie.TIERS_LIEUX]), | ||
contact: Contact({ | ||
telephone: '+33180059880', | ||
courriel: [Courriel('[email protected]')], | ||
courriels: [Courriel('contact@laquincaillerie.tl'), Courriel('hello@laquincaillerie.tl')], | ||
site_web: [Url('https://www.laquincaillerie.tl/'), Url('https://m.facebook.com/laquincaillerienumerique/')] | ||
}), | ||
horaires: 'Mo-Fr 09:00-12:00,14:00-18:30; Sa 08:30-12:00', | ||
|
@@ -262,7 +262,7 @@ describe('from schema lieux de mediation numerique', (): void => { | |
longitude: 5.41423, | ||
typologie: 'TIERS_LIEUX', | ||
telephone: '+33180059880', | ||
courriel: '[email protected]', | ||
courriels: ['[email protected]', '[email protected]'].join('|'), | ||
site_web: 'https://www.laquincaillerie.tl/|https://m.facebook.com/laquincaillerienumerique/', | ||
horaires: 'Mo-Fr 09:00-12:00,14:00-18:30; Sa 08:30-12:00', | ||
presentation_resume: | ||
|
@@ -333,7 +333,7 @@ describe('from schema lieux de mediation numerique', (): void => { | |
typologies: Typologies([Typologie.TIERS_LIEUX]), | ||
contact: Contact({ | ||
telephone: '+33180059880', | ||
courriel: [Courriel('[email protected]')], | ||
courriels: [Courriel('contact@laquincaillerie.tl'), Courriel('hello@laquincaillerie.tl')], | ||
site_web: [Url('https://www.laquincaillerie.tl/'), Url('https://m.facebook.com/laquincaillerienumerique/')] | ||
}), | ||
horaires: 'Mo-Fr 09:00-12:00,14:00-18:30; Sa 08:30-12:00', | ||
|
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 |
---|---|---|
|
@@ -98,7 +98,7 @@ describe('to schema lieux de mediation numerique', (): void => { | |
typologies: Typologies([Typologie.TIERS_LIEUX, Typologie.ASSO]), | ||
contact: Contact({ | ||
telephone: '+33180059880', | ||
courriel: [Courriel('[email protected]')], | ||
courriels: [Courriel('contact@laquincaillerie.tl'), Courriel('hello@laquincaillerie.tl')], | ||
site_web: [Url('https://www.laquincaillerie.tl/'), Url('https://m.facebook.com/laquincaillerienumerique/')] | ||
}), | ||
horaires: 'Mo-Fr 09:00-12:00,14:00-18:30; Sa 08:30-12:00', | ||
|
@@ -163,7 +163,7 @@ describe('to schema lieux de mediation numerique', (): void => { | |
longitude: 5.41423, | ||
typologie: 'TIERS_LIEUX|ASSO', | ||
telephone: '+33180059880', | ||
courriel: '[email protected]', | ||
courriels: 'contact@laquincaillerie.tl|hello@laquincaillerie.tl', | ||
site_web: 'https://www.laquincaillerie.tl/|https://m.facebook.com/laquincaillerienumerique/', | ||
horaires: 'Mo-Fr 09:00-12:00,14:00-18:30; Sa 08:30-12:00', | ||
presentation_resume: | ||
|