mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Enable result info
This commit is contained in:
parent
3e6ca702af
commit
298436da95
2 changed files with 104 additions and 5 deletions
|
|
@ -79,6 +79,32 @@ describe.concurrent('Apps', async () => {
|
|||
|
||||
expect( scan.hasMachoMeta ).toBe( true )
|
||||
})
|
||||
|
||||
it( `Can provide scan info for ${ appName } bundle`, () => {
|
||||
// console.log( 'machoMeta', scan.machoMeta )
|
||||
|
||||
expect( scan.hasInfo ).toBe( true )
|
||||
|
||||
// Expect the scan info to have a bundle name that matches the app name
|
||||
expect( scan.info.filename ).toContain( appName )
|
||||
|
||||
// Expect app version is string
|
||||
expect( typeof scan.info.appVersion ).toBe( 'string' )
|
||||
|
||||
// Expect that machoMeta is an object
|
||||
expect( typeof scan.info.machoMeta ).toBe( 'object' )
|
||||
|
||||
// Expect that machoMeta.architectures is an array
|
||||
expect( Array.isArray( scan.info.machoMeta.architectures ) ).toBe( true )
|
||||
|
||||
// Expect that first of machoMeta.architectures has processorSubType as string
|
||||
expect( typeof scan.info.machoMeta.architectures[0].processorSubType ).toBe( 'string' )
|
||||
|
||||
// Export info.infoPlist to be none empty object
|
||||
expect( typeof scan.info.infoPlist ).toBe( 'object' )
|
||||
expect( Object.keys( scan.info.infoPlist ).length ).toBeGreaterThan( 0 )
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue