From b96353dc3ce47543ddf2f860c85c78022d31a74f Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Mon, 18 Jul 2022 16:55:44 -0500 Subject: [PATCH] Expect processorSubType to be truthy --- test/scanner/client.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/scanner/client.test.js b/test/scanner/client.test.js index a57ac3e..6886eb1 100644 --- a/test/scanner/client.test.js +++ b/test/scanner/client.test.js @@ -98,13 +98,14 @@ describe.concurrent('Apps', async () => { 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' ) + expect( typeof scan.info.machoMeta.architectures[0].processorSubType ).toBeTruthy() // Export info.infoPlist to be none empty object expect( typeof scan.info.infoPlist ).toBe( 'object' ) expect( Object.keys( scan.info.infoPlist ).length ).toBeGreaterThan( 0 ) }) + } })