From 7a5f3b72e2a7a8c450ac2eb0db505e13f59da531 Mon Sep 17 00:00:00 2001 From: Willie Ruemmele Date: Tue, 11 Jun 2024 15:01:31 -0600 Subject: [PATCH] test: try splitting with \n --- test/nuts/retrieve/metadata.nut.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/nuts/retrieve/metadata.nut.ts b/test/nuts/retrieve/metadata.nut.ts index 8f6a00bd..fe5697a2 100644 --- a/test/nuts/retrieve/metadata.nut.ts +++ b/test/nuts/retrieve/metadata.nut.ts @@ -8,7 +8,6 @@ import * as path from 'node:path'; import * as fs from 'node:fs'; import { fileURLToPath } from 'node:url'; -import * as os from 'node:os'; import { execCmd } from '@salesforce/cli-plugins-testkit'; import { SourceTestkit } from '@salesforce/source-testkit'; import { expect } from 'chai'; @@ -69,7 +68,7 @@ describe('retrieve metadata NUTs', () => { ), 'utf8' ) - .split(os.EOL).length + .split('\n').length // 4 lines would be overwritten - ensures like W-15896939 is fixed ).to.be.greaterThanOrEqual(30); });