mirror of
https://github.com/r0adkll/sign-android-release
synced 2026-09-25 14:18:37 +00:00
13 lines
411 B
TypeScript
13 lines
411 B
TypeScript
import { Dirent } from "fs";
|
|
import { getReleaseFile } from "../src/io-utils";
|
|
|
|
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);
|
|
});
|
|
});
|