Add small test

This commit is contained in:
pietervdvn 2022-03-16 14:06:10 +01:00
parent daa23fad95
commit 52a440dd18

View file

@ -52,6 +52,8 @@ export class ChangesetHandler {
/**
* Creates a new list which contains every key at most once
*
* ChangesetHandler.removeDuplicateMetaTags([{key: "k", value: "v"}, {key: "k0", value: "v0"}, {key: "k", value:"v"}] // => [{key: "k", value: "v"}, {key: "k0", value: "v0"}]
*/
public static removeDuplicateMetaTags(extraMetaTags: ChangesetTag[]): ChangesetTag[]{
const r : ChangesetTag[] = []