Skip to content

Commit c76a1a1

Browse files
committed
test: debug expect
1 parent c904f56 commit c76a1a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,9 +782,10 @@ describe('e2e', function () {
782782

783783
expect(deviceId).not.to.equal('unknown');
784784
// Our hashed key is 64 hex chars
785+
expect(deviceId.length).to.equal(64, `length of deviceId: |${deviceId}|`);
785786
expect(deviceId).to.match(
786-
/[A-Fa-f0-9]{64}$/,
787-
`deviceId is not a hash ${deviceId}`
787+
/^[A-Fa-f0-9]+$/,
788+
`matched deviceId: |${deviceId}|`
788789
);
789790
});
790791

0 commit comments

Comments
 (0)