Fix typo in test description; format test file

This commit is contained in:
David Wheatley
2020-11-16 15:32:35 +00:00
parent dbeba6b98a
commit ce9d6a2f51
+11 -9
View File
@@ -1,10 +1,12 @@
import {Dirent} from "fs"; import { Dirent } from "fs";
import {getReleaseFile} from '../src/io-utils' import { getReleaseFile } from "../src/io-utils";
describe('getReleaseFile', () => { describe("getReleaseFile", () => {
it('should return undefined when the given release files is an mepty array', () => expect(getReleaseFile([])).toEqual(undefined)) it("should return undefined when the given release files is an empty array", () =>
it('should return the first release file', () => { expect(getReleaseFile([])).toEqual(undefined));
const file = {name: 'file'} as Dirent
expect(getReleaseFile([file])).toEqual(file) it("should return the first release file", () => {
}) const file = { name: "file" } as Dirent;
}) expect(getReleaseFile([file])).toEqual(file);
});
});