From d94d76c840e60d0fdb72429c8f1089921b346394 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Mon, 9 May 2022 08:46:32 -0500 Subject: [PATCH] Apply Prettier formatting to tests Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com> --- src/__tests__/index.test.ts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/__tests__/index.test.ts b/src/__tests__/index.test.ts index 4b4d36b..1f355d6 100644 --- a/src/__tests__/index.test.ts +++ b/src/__tests__/index.test.ts @@ -1,21 +1,20 @@ -import {generateName, generateNameWithNumber, left, right} from "../index"; +import { generateName, generateNameWithNumber, left, right } from "../index"; - -describe('Docker names', () => { - test('should generate a random name', () => { +describe("Docker names", () => { + test("should generate a random name", () => { const name = generateName(); - const parts = name.split('-'); + const parts = name.split("-"); expect(parts).toHaveLength(2); expect(left).toContain(parts[0]); expect(right).toContain(parts[1]); - }) + }); test("should generate a random name with a number", () => { const nameWithNumber = generateNameWithNumber(); - const parts = nameWithNumber.split('-'); + const parts = nameWithNumber.split("-"); expect(parts).toHaveLength(3); expect(left).toContain(parts[0]); expect(right).toContain(parts[1]); expect(parseInt(parts[2])).toBeGreaterThan(0); - }) -}) + }); +});