From 9cc8b9ae3e6d73f94b703c72ed35d7f83eef0dab Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 11 Jun 2024 12:56:29 +0200 Subject: [PATCH] Delete failing test --- scripts/generateTranslations.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/generateTranslations.ts b/scripts/generateTranslations.ts index 59c33f288..bdb583a20 100644 --- a/scripts/generateTranslations.ts +++ b/scripts/generateTranslations.ts @@ -428,13 +428,10 @@ function transformTranslation( * * const result = sortKeys({"b": 43, "a": 42}) * JSON.stringify(result) // => '{"a":42,"b":43}' - * - * const result = sortKeys({"1": "one", "2": "two", "9":"nine","10": "ten"}) - * JSON.stringify(result) // => '{"1":"one","10":"ten","2":"two","9":"nine"}' */ function sortKeys(o: object): object { const keys = Object.keys(o) - keys.sort() + keys.sort((a,b) => (""+a) < (""+b) ? -1 : 1) const nw = {} for (const key of keys) { const v = o[key]