Skip to content

Commit b8198c4

Browse files
author
Perki
committed
Fixing CERC code
1 parent 05fbfcc commit b8198c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/pryv/test/Connection.edge-cases.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ describe('[CECX] Connection Edge Cases', function () {
3939
it('[CERC] constructor throws on invalid service param', function () {
4040
let error = null;
4141
try {
42-
pryv.Connection(testData.apiEndpointWithToken, { notAService: true });
42+
const _conn = new pryv.Connection(testData.apiEndpointWithToken, { notAService: true });
43+
expect(_conn).to.not.exist; // Should not reach here
4344
} catch (e) {
4445
error = e;
4546
}

0 commit comments

Comments
 (0)