pryv 2.3.1 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Service.js +1 -0
- package/src/index.d.ts +1 -0
- package/test/Service.test.js +7 -1
package/package.json
CHANGED
package/src/Service.js
CHANGED
package/src/index.d.ts
CHANGED
package/test/Service.test.js
CHANGED
|
@@ -66,10 +66,16 @@ describe('Service', function () {
|
|
|
66
66
|
expect(assets).to.be.null;
|
|
67
67
|
});
|
|
68
68
|
|
|
69
|
-
it('login() failed', async function () {
|
|
69
|
+
it('login() failed on wrong password', async function () {
|
|
70
70
|
this.timeout(5000);
|
|
71
71
|
const pryvService = new pryv.Service(testData.serviceInfoUrl);
|
|
72
72
|
await expect(pryvService.login(testData.username, 'bobby', 'jslib-test')).to.be.rejectedWith('The given username/password pair is invalid.');
|
|
73
73
|
});
|
|
74
|
+
|
|
75
|
+
it('login() failed on wrong username', async function () {
|
|
76
|
+
this.timeout(5000);
|
|
77
|
+
const pryvService = new pryv.Service(testData.serviceInfoUrl);
|
|
78
|
+
await expect(pryvService.login('wrong-username', 'bobby', 'jslib-test')).to.be.rejectedWith('getaddrinfo ENOTFOUND wrong');
|
|
79
|
+
});
|
|
74
80
|
});
|
|
75
81
|
});
|