Get update app activities working

This commit is contained in:
Jonas L
2019-04-15 00:00:00 +00:00
parent cd953319ce
commit aa141c33a2
3 changed files with 12 additions and 4 deletions
+6
View File
@@ -26,3 +26,9 @@ export function assertNonEmptyListWithoutDuplicates (list: Array<string>) {
throw new Error('expected list without duplicates')
}
}
export function assertListWithoutDuplicates (list: Array<string>) {
if (uniq(list).length !== list.length) {
throw new Error('expected list without duplicates')
}
}