Files
setup-php/node_modules/codecov/test/services/wercker.test.js
T
Shivam Mathur 43178a7254
Main workflow / Run (ubuntu-latest, 5.6) (push) Failing after 0s
Main workflow / Run (ubuntu-latest, 7.0) (push) Failing after 0s
Main workflow / Run (ubuntu-latest, 7.1) (push) Failing after 0s
Main workflow / Run (ubuntu-latest, 7.2) (push) Failing after 0s
Main workflow / Run (ubuntu-latest, 7.3) (push) Failing after 0s
Main workflow / Run (macOS-latest, 5.6) (push) Canceled after 0s
Main workflow / Run (macOS-latest, 7.0) (push) Canceled after 0s
Main workflow / Run (macOS-latest, 7.1) (push) Canceled after 0s
Main workflow / Run (macOS-latest, 7.2) (push) Canceled after 0s
Main workflow / Run (macOS-latest, 7.3) (push) Canceled after 0s
Main workflow / Run (windows-latest, 5.6) (push) Canceled after 0s
Main workflow / Run (windows-latest, 7.0) (push) Canceled after 0s
Main workflow / Run (windows-latest, 7.1) (push) Canceled after 0s
Main workflow / Run (windows-latest, 7.2) (push) Canceled after 0s
Main workflow / Run (windows-latest, 7.3) (push) Canceled after 0s
Improve code quality and write tests
2019-09-20 21:54:46 +05:30

26 lines
802 B
JavaScript

var wercker = require('../../lib/services/wercker')
describe('Wercker CI Provider', function() {
it('can detect wercker', function() {
process.env.WERCKER_MAIN_PIPELINE_STARTED = '1399372237'
expect(wercker.detect()).toBe(true)
})
it('can get wercker env info', function() {
process.env.WERCKER_MAIN_PIPELINE_STARTED = '1399372237'
process.env.WERCKER_GIT_COMMIT = '5678'
process.env.WERCKER_GIT_BRANCH = 'master'
process.env.WERCKER_BUILD_URL = 'https://...'
process.env.WERCKER_GIT_OWNER = 'owner'
process.env.WERCKER_GIT_REPOSITORY = 'repo'
expect(wercker.configuration()).toEqual({
service: 'wercker',
commit: '5678',
build: '1399372237',
branch: 'master',
build_url: 'https://...',
slug: 'owner/repo',
})
})
})