Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

Commit ddc6c8e

Browse files
author
azlam-abdulsalam
committed
fix(tests): fix changed behaviour in validating sfdx-project.json
1 parent e264210 commit ddc6c8e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/sfpowerscripts-cli/tests/ProjectValidation.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ describe('Given a sfdx-project.json, it should be validated against the scehma',
184184
}).not.toThrow();
185185
});
186186

187-
it('should throw an error for a sfdx-project.json where various sfpowerscripts orchestrator properties are incorrectly used', () => {
187+
it('should not throw an error for a sfdx-project.json where various sfpowerscripts orchestrator properties are incorrectly used', () => {
188+
//As the errors are moved to warning, it will not throw an error
188189
let sfdx_project = {
189190
packageDirectories: [
190191
{
@@ -249,7 +250,7 @@ describe('Given a sfdx-project.json, it should be validated against the scehma',
249250
});
250251
expect(() => {
251252
new ProjectValidation().validateSFDXProjectJSON();
252-
}).toThrow();
253+
}).not.toThrow();
253254
});
254255

255256
it('should not throw an package-specific error for sfdx-project.json when version number is used correctly', () => {

0 commit comments

Comments
 (0)