From ce9d6a2f510412db82cb402552aec5bfa432a595 Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Mon, 16 Nov 2020 15:32:30 +0000 Subject: [PATCH] Fix typo in test description; format test file --- __tests__/io-utils.test.ts | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/__tests__/io-utils.test.ts b/__tests__/io-utils.test.ts index f2b0688a..5d9df586 100644 --- a/__tests__/io-utils.test.ts +++ b/__tests__/io-utils.test.ts @@ -1,10 +1,12 @@ -import {Dirent} from "fs"; -import {getReleaseFile} from '../src/io-utils' +import { Dirent } from "fs"; +import { getReleaseFile } from "../src/io-utils"; -describe('getReleaseFile', () => { - it('should return undefined when the given release files is an mepty array', () => expect(getReleaseFile([])).toEqual(undefined)) - it('should return the first release file', () => { - const file = {name: 'file'} as Dirent - expect(getReleaseFile([file])).toEqual(file) - }) -}) \ No newline at end of file +describe("getReleaseFile", () => { + it("should return undefined when the given release files is an empty array", () => + expect(getReleaseFile([])).toEqual(undefined)); + + it("should return the first release file", () => { + const file = { name: "file" } as Dirent; + expect(getReleaseFile([file])).toEqual(file); + }); +});