Skip to content

Commit 5a4c8e3

Browse files
committed
fix: use first line of the output
1 parent 1704b73 commit 5a4c8e3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

packages/e2e-tests/test/e2e.spec.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -777,12 +777,17 @@ describe('e2e', function () {
777777
'db._mongo._instanceState.evaluationListener.ioProvider.loggingAndTelemetry.deviceId'
778778
)
779779
)
780-
.replace(/test>/g, '')
781-
.trim();
780+
.split('\n')[0]
781+
// Remove all whitespace
782+
.replace(/\s+/g, '');
782783

783784
expect(deviceId).not.to.equal('unknown');
784785
// Our hashed key is 64 hex chars
785-
expect(deviceId).to.match(/^[a-f0-9]{64}$/);
786+
787+
expect(deviceId).to.match(
788+
/^[a-f0-9]{64}$/,
789+
`deviceId did not match: |${deviceId}|`
790+
);
786791
});
787792

788793
context('post-4.2', function () {

0 commit comments

Comments
 (0)