Skip to content

Commit

Permalink
FIXED: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
riyadhalnur committed Jan 18, 2021
1 parent e7dfdd1 commit 0733ced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/base64-image.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ describe('Base64 Image Decode/Encode', () => {
});

it('should download an image and return the Base64 encoded string', async () => {
const url = "https://verticalaxisbd.com/img/gopher.webp";
const url = 'https://verticalaxisbd.com/img/gopher.webp';
const options = {string: true};

const image = await encode(url, options);
expect(image).toMatch(/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/);
});

it('should download an image and return the Buffer object by default', async () => {
const url = "https://verticalaxisbd.com/img/gopher.webp";
const url = 'https://verticalaxisbd.com/img/gopher.webp';
const options = {};

const image = await encode(url, options);
Expand Down

0 comments on commit 0733ced

Please sign in to comment.