fix rom2 id

This commit is contained in:
tree🌴 2023-11-05 22:43:36 +01:00
parent d004edf460
commit 3090cdae6d
3 changed files with 8 additions and 2 deletions

View file

@ -46,7 +46,7 @@ research and community of [Web3Privacy Now](https://web3privacy.info).
| meetup | `lju1` | 2024/Jun | 🇸🇮 Ljubljana | - | W3PN Hackathon | - | | | meetup | `lju1` | 2024/Jun | 🇸🇮 Ljubljana | - | W3PN Hackathon | - | |
| meetup | `bcn2` | 2024/Jul | 🇪🇸 Barcelona | - | ETHBarcelona (?) | - | | | meetup | `bcn2` | 2024/Jul | 🇪🇸 Barcelona | - | ETHBarcelona (?) | - | |
| meetup | `bru1` | 2024/Jul | 🇧🇪 Brussels | - | [EthCC 7](https://www.ethcc.io/) | - | | | meetup | `bru1` | 2024/Jul | 🇧🇪 Brussels | - | [EthCC 7](https://www.ethcc.io/) | - | |
| meetup | `rom1` | 2024/Oct | 🇮🇹 Rome | - | ETHRome 2024 | - | | | meetup | `rom2` | 2024/Oct | 🇮🇹 Rome | - | ETHRome 2024 | - | |
| summit | `s3` | 2024/Nov | 🇨🇿 Brno | - | ETHBrno 2024 | - | | | summit | `s3` | 2024/Nov | 🇨🇿 Brno | - | ETHBrno 2024 | - | |
| meetup | `dvc1` | 2024/Q4 | 🏴‍☠️ SE Asia | - | [Devcon 7](https://devcon.org/) | - | | | meetup | `dvc1` | 2024/Q4 | 🏴‍☠️ SE Asia | - | [Devcon 7](https://devcon.org/) | - | |

View file

@ -103,7 +103,7 @@
country: be country: be
coincidence: "[EthCC 7](https://www.ethcc.io/)" coincidence: "[EthCC 7](https://www.ethcc.io/)"
- id: w3pm-rom1 - id: w3pm-rom2
type: meetup type: meetup
date: "2024/Oct" date: "2024/Oct"
city: Rome city: Rome

View file

@ -24,12 +24,18 @@ async function test() {
const validator = ajv.compile(schema); const validator = ajv.compile(schema);
const list = await _loadYaml(`./events/events.yaml`); const list = await _loadYaml(`./events/events.yaml`);
const ids = [];
for (const item of list) { for (const item of list) {
Deno.test(`${item.id}`, async () => { Deno.test(`${item.id}`, async () => {
if (!validator(item)) { if (!validator(item)) {
throw validator.errors; throw validator.errors;
} }
if (ids.includes(item.id)) {
throw `ID exists: ${item.id}`
}
ids.push(item.id)
}); });
} }
} }