mirror of
https://github.com/r0adkll/sign-android-release
synced 2026-09-25 14:18:37 +00:00
10 lines
407 B
TypeScript
10 lines
407 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 mepty array', () => expect(getReleaseFile([])).toEqual(undefined))
|
|
it('should return the first release file', () => {
|
|
const file = {name: 'file'} as Dirent
|
|
expect(getReleaseFile([file])).toEqual(file)
|
|
})
|
|
}) |