mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Use scan.supportedArchitectures getter
This commit is contained in:
parent
45f77d2c8a
commit
4045113bd8
1 changed files with 4 additions and 4 deletions
|
|
@ -94,18 +94,18 @@ describe.concurrent('Apps', async () => {
|
|||
// 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 supportedArchitectures is not empty
|
||||
expect( scan.supportedArchitectures.length ).toBeGreaterThan( 0 )
|
||||
|
||||
// Expect that processorType is a string
|
||||
expect( typeof scan.info.machoMeta.architectures[0].processorType ).toBe( 'string' )
|
||||
expect( typeof scan.supportedArchitectures[0].processorType ).toBe( 'string' )
|
||||
|
||||
const validCPUTypes = [
|
||||
'ANY', 'VAX', 'MC680', 'X86', 'MIPS', 'MC98000', 'HPPA', 'ARM', 'ARM64', 'MC88000', 'SPARC', 'I860', 'POWERPC', 'POWERPC64'
|
||||
]
|
||||
|
||||
// Expect that processorType is a valid CPU type
|
||||
expect( validCPUTypes.includes( scan.info.machoMeta.architectures[0].processorType ) ).toBe( true )
|
||||
expect( validCPUTypes.includes( scan.supportedArchitectures[0].processorType ) ).toBe( true )
|
||||
|
||||
// Expect that first of machoMeta.architectures has processorSubType as string
|
||||
expect( typeof scan.info.machoMeta.architectures[0].processorSubType ).toBeTruthy()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue