Skip to content

Commit

Permalink
CI updates (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon93s authored and sindresorhus committed Dec 31, 2018
1 parent 6d4bdb6 commit 37315fd
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 28 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
os: windows
language: node_js
node_js:
- '10'
- '8'
- '6'
20 changes: 0 additions & 20 deletions appveyor.yml

This file was deleted.

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,5 @@
"devDependencies": {
"ava": "*",
"xo": "*"
},
"xo": {
"esnext": true
}
}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# taskkill [![Build status](https://ci.appveyor.com/api/projects/status/3nbck5l209huf4mn/branch/master?svg=true)](https://ci.appveyor.com/project/sindresorhus/taskkill/branch/master)
# taskkill [![Build Status](https://travis-ci.org/sindresorhus/taskkill.svg?branch=master)](https://travis-ci.org/sindresorhus/taskkill)

> Wrapper for the Windows [`taskkill`](https://technet.microsoft.com/en-us/library/bb491009.aspx) command. Ends one or more tasks or processes.
Expand Down
8 changes: 4 additions & 4 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import childProcess from 'child_process';
import test from 'ava';
import m from './';
import m from '.';

test('kills a process', async t => {
const pid = childProcess.spawn(process.execPath).pid;
const {pid} = childProcess.spawn(process.execPath);
await m(pid, {force: true});

// Check if the process exists
t.throws(() => process.kill(pid));
});

test('throws on not found', t => {
t.throws(m('not-running.exe'));
test('throws on not found', async t => {
await t.throwsAsync(m('not-running.exe'));
});

0 comments on commit 37315fd

Please sign in to comment.