Improved ShlinkApiClient test

This commit is contained in:
Alejandro Celaya
2018-08-22 22:38:05 +02:00
parent c092f290ec
commit a5865e6cec
2 changed files with 150 additions and 11 deletions

View File

@@ -57,7 +57,7 @@ export class ShlinkApiClient {
deleteTags = tags =>
this._performRequest('/tags', 'DELETE', { tags })
.then(() => ({ tags }))
.catch(e => this._handleAuthError(e, this.deleteTag, []));
.catch(e => this._handleAuthError(e, this.deleteTags, [tags]));
editTag = (oldName, newName) =>
this._performRequest('/tags', 'PUT', {}, { oldName, newName })