Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
randytarampi committed Apr 26, 2020
2 parents 3842b14 + be3ab60 commit 9db9c4a
Show file tree
Hide file tree
Showing 27 changed files with 260 additions and 225 deletions.
381 changes: 208 additions & 173 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"coveralls": "^3.0.9",
"eslint": "^6.8.0",
"eslint-plugin-import": "^2.19.1",
"mkdirp": "^0.5.1",
"mkdirp": "^1.0.4",
"mocha": "^7.0.0",
"mocha-lcov-reporter": "^1.3.0",
"node-cpplint": "^0.4.0",
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/002.create.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const tmpDir = join(__dirname, '../results');

describe('lwip.create', () => {

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

describe('500X500, [255,0,0,50]', () => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/101.writeFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ describe('lwip.writeFile', () => {

let image;

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});
before(done => {
lwip.open(imgs.jpg.rgb, (err, img) => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/102.resize.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ describe('lwip.resize', () => {

let image;

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

beforeEach(done => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/103.scale.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ describe('lwip.scale', () => {

let image;

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

beforeEach(done => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/104.rotate.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ describe('lwip.rotate', () => {

let image;

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

beforeEach(done => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/105.crop.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ describe('lwip.crop', () => {

let image;

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

beforeEach(done => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/106.blur.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ describe('lwip.blur', () => {

let image;

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

beforeEach(done => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/107.mirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ describe('lwip.mirror (/flip)', () => {

let image;

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

beforeEach(done => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/108.pad.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ describe('lwip.pad', () => {

let image;

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

beforeEach(done => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/109.border.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ describe('lwip.border', () => {

let image;

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

beforeEach(() => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/110.sharpen.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ describe('lwip.sharpen', () => {

let image;

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

beforeEach(done => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/111.saturate.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ describe('lwip.saturate', () => {

let image;

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

beforeEach(done => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/112.lighten.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ describe('lwip.lighten', () => {

let image;

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

beforeEach(done => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/113.darken.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ describe('lwip.darken', () => {

let image;

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

beforeEach(done => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/114.hue.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ describe('lwip.hue', () => {

let image;

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

beforeEach(done => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/115.hslaAdjust.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ describe('lwip.hslaAdjust', () => {

let image;

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

beforeEach(done => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/116.fade.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ describe('lwip.fade', () => {

let image;

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

beforeEach(done => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/116.opacify.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ describe('lwip.opacify', () => {

let image;

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

beforeEach(done => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/117.paste.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ describe('lwip.paste', () => {
let back, front;
// back is the regular image. front is flipped on 'y' axis.

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

beforeEach(done => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/118.setPixel.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ describe('lwip.setPixel', () => {

let image;

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

beforeEach(done => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/119.contain.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ describe('lwip.contain', () => {

let image;

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

beforeEach(done => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/120.cover.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ describe('lwip.cover', () => {

let image;

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

beforeEach(done => {
Expand Down
4 changes: 2 additions & 2 deletions tests/02.operations/121.setMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const tmpDir = join(__dirname, '../results');

describe('lwip.setMetadata', () => {

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

describe('set png metadata', () => {
Expand Down
6 changes: 3 additions & 3 deletions tests/04.batch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ describe('image.batch', () => {

const tmpDir = join(__dirname, '../results');

before(done => {
mkdirp(tmpDir, done);
});
before(() => {
return mkdirp(tmpDir);
});

describe('jpeg', () => {

Expand Down
4 changes: 2 additions & 2 deletions tests/05.stress/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ describe('stress tests', function () {

this.timeout(120000); // 120 seconds per test

before(done => {
mkdirp(tmpDir, done);
before(() => {
return mkdirp(tmpDir);
});

describe('open image 300 times (in parallel) and save to disk as jpeg', () => {
Expand Down

0 comments on commit 9db9c4a

Please sign in to comment.