Skip to content

Commit 4b82373

Browse files
committed
adjust test and jsdoc
1 parent c8107ef commit 4b82373

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/bring.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class Bring {
185185
/**
186186
* Load translation file e. g. via 'de-DE'
187187
* @param {string} locale from which country translations will be loaded
188-
* @return @return {Promise<json>} catalog
188+
* @return {Promise<json>} catalog
189189
*/
190190
async loadCatalog(locale) {
191191
try {

test/testMinimal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ describe(`Wrong login test`, () => {
1313
try {
1414
await bring.login();
1515
} catch (e) {
16-
if (e.message.includes(`email password combination not existing`)) {
17-
return Promise.resolve();
16+
if (!e.message.includes(`email password combination not existing`)) {
17+
throw new Error(`Wrong rejection message on login: ${e.message}`);
1818
}
1919
}
2020
});

0 commit comments

Comments
 (0)