Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Jun 30, 2017
1 parent 78b7d49 commit 98f1241
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/index.js
Expand Up @@ -17,7 +17,7 @@ describe('Probot', () => {

describe('receive', () => {
it('delivers the event', async () => {
spy = expect.createSpy();
const spy = expect.createSpy();
probot.load(robot => robot.on('push', spy));

await probot.receive(event);
Expand All @@ -26,8 +26,6 @@ describe('Probot', () => {
});

it('raises errors thrown in plugins', async () => {
spy = expect.createSpy();

probot.load(robot => robot.on('push', () => {
throw new Error('something happened');
}));
Expand Down

0 comments on commit 98f1241

Please sign in to comment.