Skip to content

Commit

Permalink
style: tidy whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Frazer Smith committed Jan 19, 2020
1 parent fba0644 commit 8f4bd44
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ When cutting a release, the following steps need to be performed:

## Issues

Please file your issues [here](https://github.com/Fdawgs/node-poppler/issues) and try to provide as much information in the template as possible/relevant.
Please file your issues [here](https://github.com/Fdawgs/node-poppler/issues) and try to provide as much information in the template as possible/relevant.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ npm install node-poppler
node-poppler's test scripts use yarn commands.

## Linux support

Windows and OSX/Darwin binaries are provided with this repository.
For Linux users, you will need to download the `poppler-data` and `poppler-utils` binaries seperately.

An example of downloading the binaries on a Debian system:

```
sudo apt-get install poppler-data
sudo apt-get install poppler-utils
Expand All @@ -47,7 +49,6 @@ const { Poppler } = require('node-poppler');
const poppler = new Poppler('./usr/bin');
```


# API

[API Documentation can be found here](https://github.com/Fdawgs/node-poppler/blob/master/API.md)
Expand Down
10 changes: 4 additions & 6 deletions src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,12 @@ describe('pdfImages function', () => {
test('Should accept options and list all images in file', async () => {
const poppler = new Poppler();
const options = {
list: true
list: true
};

await poppler
.pdfImages(options, file)
.then((res) => {
expect(typeof res).toBe('string');
});
await poppler.pdfImages(options, file).then((res) => {
expect(typeof res).toBe('string');
});
});

test('Should return an Error object if file passed not PDF format', async () => {
Expand Down

0 comments on commit 8f4bd44

Please sign in to comment.