Skip to content

Commit

Permalink
Use Travis to test on Windows (#22)
Browse files Browse the repository at this point in the history
* Use Travis to test on Windows

* Update ava
  • Loading branch information
1000ch authored Jan 13, 2019
1 parent d6ab233 commit caf5e15
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 26 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
sudo: false
os:
- linux
- windows
language: node_js
node_js:
- '10'
Expand Down
21 changes: 0 additions & 21 deletions appveyor.yml

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
"jpegtran-bin": "^4.0.0"
},
"devDependencies": {
"ava": "*",
"ava": "^1.0.1",
"is-progressive": "^3.0.0",
"pify": "^4.0.0",
"xo": "*"
"xo": "^0.23.0"
},
"xo": {
"esnext": true
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# imagemin-jpegtran [![Build Status](https://travis-ci.org/imagemin/imagemin-jpegtran.svg?branch=master)](https://travis-ci.org/imagemin/imagemin-jpegtran) [![Build status](https://ci.appveyor.com/api/projects/status/rwf4by6qcbne1qet?svg=true)](https://ci.appveyor.com/project/ShinnosukeWatanabe/imagemin-jpegtran)
# imagemin-jpegtran [![Build Status](https://travis-ci.org/imagemin/imagemin-jpegtran.svg?branch=master)](https://travis-ci.org/imagemin/imagemin-jpegtran)

> jpegtran imagemin plugin
Expand Down
4 changes: 3 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ test('optimize a JPG', async t => {

test('throw error when a JPG is corrupt', async t => {
const buf = await fsP.readFile(path.join(__dirname, 'fixture-corrupt.jpg'));
await t.throws(m()(buf), /Corrupt JPEG data/);
await t.throwsAsync(async () => {
await m()(buf);
}, /Corrupt JPEG data/);
});

test('progressive option', async t => {
Expand Down

0 comments on commit caf5e15

Please sign in to comment.