From de9e604f87f0f90fd76654f29ca93ec6af40749d Mon Sep 17 00:00:00 2001 From: Peter van Gulik Date: Mon, 22 Jan 2024 20:31:49 +0100 Subject: [PATCH] chore: fix unit test error due to platform differences --- .../salesforce/src/__tests__/salesforcePackageBuilder.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/salesforce/src/__tests__/salesforcePackageBuilder.test.ts b/packages/salesforce/src/__tests__/salesforcePackageBuilder.test.ts index 6ba60daa..e17d92f1 100644 --- a/packages/salesforce/src/__tests__/salesforcePackageBuilder.test.ts +++ b/packages/salesforce/src/__tests__/salesforcePackageBuilder.test.ts @@ -493,7 +493,8 @@ describe('SalesforcePackageBuilder', () => { await packageBuilder.addFiles([ 'src/dashboards' ]); const manifest = packageBuilder.getManifest(); - const [ folder, dashBoard ] = [...packageBuilder.getPackage().sourceFiles()]; + const [ folder, dashBoard ] = [...packageBuilder.getPackage().sourceFiles()] + .sort((a,b) => a.packagePath.localeCompare(b.packagePath)); expect(folder.packagePath).toEqual('dashboards/MyFolder-meta.xml'); expect(dashBoard.packagePath).toEqual('dashboards/MyFolder/Board.dashboard');