Skip to content

Commit

Permalink
Merge pull request #6 from acelaya-forks/feature/fix-test
Browse files Browse the repository at this point in the history
Feature/fix test
  • Loading branch information
acelaya authored Aug 28, 2023
2 parents ecb6569 + 4925987 commit 3c3fbdf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
# Shlink JS SDK

[![Build Status](https://img.shields.io/github/actions/workflow/status/shlinkio/shlink-js-sdk/ci.yml?branch=main&logo=github&style=flat-square)](https://github.com/shlinkio/shlink-js-sdk/actions/workflows/ci.yml?query=workflow%3A%22Continuous+integration%22)
[![Code Coverage](https://img.shields.io/codecov/c/gh/shlinkio/shlink-js-sdk/main?style=flat-square)](https://app.codecov.io/gh/shlinkio/shlink-js-sdk)
[![GitHub release](https://img.shields.io/github/release/shlinkio/shlink-js-sdk.svg?style=flat-square)](https://github.com/shlinkio/shlink-js-sdk/releases/latest)
[![GitHub license](https://img.shields.io/github/license/shlinkio/shlink-js-sdk.svg?style=flat-square)](https://github.com/shlinkio/shlink-js-sdk/blob/main/LICENSE)
[![Paypal Donate](https://img.shields.io/badge/Donate-paypal-blue.svg?style=flat-square&logo=paypal&colorA=cccccc)](https://slnk.to/donate)

A javascript Shlink's REST API client for the browser and node.js.

## Installation

npm i @shlinkio/shlink-js-sdk

## General usage

This library provides a main `ShlinkApiClient` class, which receives some config and allows to consume all endpoints exposed by Shlink API.
Expand Down
2 changes: 1 addition & 1 deletion test/api/ShlinkApiClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ describe('ShlinkApiClient', () => {

const result = await apiClient.listTags();

expect({ tags: expectedTags }).toEqual(result);
expect(result).toEqual({ tags: expectedTags, stats: [] });
expect(jsonRequest).toHaveBeenCalledWith(
expect.stringContaining('/tags'),
expect.objectContaining({ method: 'GET' }),
Expand Down

0 comments on commit 3c3fbdf

Please sign in to comment.