Skip to content

Commit

Permalink
fix(tinube): fixed url for tinube
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiin committed Mar 26, 2022
1 parent e126d4a commit d86ea9c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ Url shortner supports the following providers.

| Provider | Status |
| ----------- | ------ |
| is.gd | ✔️ |
| cdpt.in | ✔️ |
| tinu.be | ✔️ |
| kroom.tk | ✔️ |
| tinyurl.com | ✔️ |
| 4h.net | ✔️ |
| is.gd | ✔️ |
| cdpt.in | ✔️ |
| tinu.be | ✔️ |
| kroom.tk | ✔️ |
| tinyurl.com | ✔️ |
| 4h.net | X |

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "url-minify",
"version": "2.3.0",
"version": "2.3.1",
"description": "Library to shorten url without any api keys",
"scripts": {
"format": "prettier --write \"src/**/*.ts\"",
Expand Down
2 changes: 1 addition & 1 deletion src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const ValidProviders: Record<string, IProviders> = {
// POST APIS

tinube: {
url: 'https://tinu.be/api/shorten',
url: 'https://api.tinu.be/api/shorten',
method: 'post',
body: (val: string) => {
return { longUrl: val };
Expand Down
8 changes: 4 additions & 4 deletions test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ describe('should get a shortened url', () => {
expect(response.shortUrl).toMatch(/^www.kroom.tk\//);
});

it('should get shortened url with 4h.net', async () => {
const response = await minify(url, { provider: '4hnet' });
expect(response.shortUrl).toMatch(/^https:\/\/4h.net\//);
});
// it('should get shortened url with 4h.net', async () => {
// const response = await minify(url, { provider: '4hnet' });
// expect(response.shortUrl).toMatch(/^https:\/\/4h.net\//);
// });

it('should get shortened url with tinu.be', async () => {
const response = await minify(url, { provider: 'tinube' });
Expand Down

0 comments on commit d86ea9c

Please sign in to comment.