Skip to content

Commit

Permalink
test(url): removed dns resolver test
Browse files Browse the repository at this point in the history
  • Loading branch information
onderceylan committed Nov 1, 2019
1 parent 753c44d commit 3027d07
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/helpers/url.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,6 @@ const exampleUrl =
'https://raw.githubusercontent.com/onderceylan/pwa-asset-generator/HEAD/static/logo.png';

describe('URL helper', () => {
describe('with isUrlExist should check url existence', () => {
it('when URL is reachable', async () => {
expect(await url.isUrlExists(exampleUrl)).toBeTruthy();
});

it('when URL is not reachable', async () => {
expect(
await url.isUrlExists('https://your-cdn-server.com/assets/logo.png'),
).toBeFalsy();
});
});

describe('with isUrl should check url', () => {
it('when URL is legitimate', async () => {
expect(await url.isUrl(exampleUrl)).toBeTruthy();
Expand Down

0 comments on commit 3027d07

Please sign in to comment.