UNPKG

github-webhook-forwarding

Version:

Forwards Github Webhooks to overcome the maximum number of webhooks allowed by Github (20)

26 lines (22 loc) 725 B
'use strict' var btoa = require('btoa') var createHook = require('../../lib/github/createhook') var removeThisHook = require('../../lib/github/removethishook') var requireTestConfig = require('../helpers/requiretestconfig') describe('removethishook', function () { requireTestConfig() var config = { gitOwner: process.env['GWF_TEST_OWNER'], gitAuth: btoa(process.env['GWF_TEST_USER'] + ':' + process.env['GWF_TEST_PASS']), callbackURL: 'http://thisdoesntexistitisatest.com' } before(function () { this.timeout(5000) return createHook(config) }) it('should remove the hook with the specified callbackURL', function () { this.timeout(5000) return removeThisHook(config) }) })