From f0a2808e3e6f73d7709f38aef5ff77e633cb2a92 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Wed, 2 Apr 2025 22:38:51 +0200 Subject: [PATCH] chore(format): fix format issues in sanitize_attribute_name.spec.ts --- src/services/sanitize_attribute_name.spec.ts | 28 ++++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/services/sanitize_attribute_name.spec.ts b/src/services/sanitize_attribute_name.spec.ts index 7688e3548..3755da5a7 100644 --- a/src/services/sanitize_attribute_name.spec.ts +++ b/src/services/sanitize_attribute_name.spec.ts @@ -3,33 +3,33 @@ import sanitizeAttributeName from "./sanitize_attribute_name.js"; // fn value, expected value const testCases: [fnValue: string, expectedValue: string][] = [ - ["testName", "testName"], - ["test_name", "test_name"], - ["test with space", "test_with_space"], - ["test:with:colon", "test:with:colon"], + [ "testName", "testName" ], + [ "test_name", "test_name" ], + [ "test with space", "test_with_space" ], + [ "test:with:colon", "test:with:colon" ], // numbers - ["123456", "123456"], - ["123:456", "123:456"], - ["123456 abc", "123456_abc"], + [ "123456", "123456" ], + [ "123:456", "123:456" ], + [ "123456 abc", "123456_abc" ], // non-latin characters - ["ε", "ε"], - ["attribute ε", "attribute_ε"], + [ "ε", "ε" ], + [ "attribute ε", "attribute_ε" ], // special characters - ["test/name", "test_name"], - ["test%name", "test_name"], - ["\/", "_"], + [ "test/name", "test_name" ], + [ "test%name", "test_name" ], + [ "\/", "_" ], // empty string - ["", "unnamed"] + [ "", "unnamed" ] ]; describe("sanitizeAttributeName unit tests", () => { testCases.forEach((testCase) => { return it(`'${testCase[0]}' should return '${testCase[1]}'`, () => { - const [value, expected] = testCase; + const [ value, expected ] = testCase; const actual = sanitizeAttributeName(value); expect(actual).toStrictEqual(expected); });