From 34480754945659122a8b658c0a45158a67f26ce7 Mon Sep 17 00:00:00 2001 From: tbushman Date: Sat, 17 Nov 2018 23:25:23 -0700 Subject: [PATCH] fix test title --- probot/presolver/test/index.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/probot/presolver/test/index.test.js b/probot/presolver/test/index.test.js index 3746eba4ed..ea9c923284 100644 --- a/probot/presolver/test/index.test.js +++ b/probot/presolver/test/index.test.js @@ -1,6 +1,7 @@ const expect = require('expect') const { Probot } = require('probot') const prSuccessEvent = require('./events/pullRequests.opened') +const prExisting = require('./events/pullRequests.existing') const probotPlugin = require('..') describe('Presolver', () => { @@ -31,7 +32,7 @@ describe('Presolver', () => { {filename: 'test.txt'} ] })), - getAll: jest.fn().mockImplementation(() => ({ data: [prSuccessEvent.pull_request] })) + getAll: jest.fn().mockImplementation(() => ({ data: [prExisting.pull_request] })) } } app.auth = () => Promise.resolve(github) @@ -39,7 +40,7 @@ describe('Presolver', () => { // app.app = () => 'test' }) - test('creates a comment when an issue is opened', async () => { + test('adds a label if a PR has changes to files targeted by an existing PR', async () => { // Receive a webhook event await probot.receive({name: 'pull_request.opened', payload: prSuccessEvent}) expect(github.issues.addLabels).toHaveBeenCalled()