Skip to content

Commit 6c9cca3

Browse files
committed
test: log unexpected results
1 parent c2489a6 commit 6c9cca3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/nuts/commands/conflicts.nut.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ describe('conflict detection and resolution', () => {
7272
ensureExitCode: 0,
7373
}).jsonOutput.result;
7474
// profile and customApplication
75-
expect(result).to.have.lengthOf(2);
75+
expect(result, JSON.stringify(result)).to.have.lengthOf(2);
7676
});
7777
it('edits a local file', async () => {
7878
const filePath = path.join(
@@ -91,7 +91,7 @@ describe('conflict detection and resolution', () => {
9191
it('can see the conflict in status', () => {
9292
const result = execCmd<StatusResult[]>(replaceRenamedCommands('force:source:status --json'), { ensureExitCode: 0 })
9393
.jsonOutput.result;
94-
expect(result).to.have.lengthOf(3);
94+
expect(result, JSON.stringify(result)).to.have.lengthOf(3);
9595
result.filter((app) => app.type === 'CustomApplication').map((app) => expect(app.state).to.include('(Conflict)'));
9696
});
9797

0 commit comments

Comments
 (0)