Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit 0c57093

Browse files
committed
Rename semaphore v2 clearly in tests
1 parent 5a5c489 commit 0c57093

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/services/semaphore2x.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var semaphore = require('../../lib/services/semaphore2x')
1+
var semaphore2 = require('../../lib/services/semaphore2x')
22

33
describe('Semaphore 2.x CI Provider', function() {
44
var OLD_ENV = process.env
@@ -14,20 +14,20 @@ describe('Semaphore 2.x CI Provider', function() {
1414
it('can detect semaphore 2x', function() {
1515
process.env.SEMAPHORE = 'true'
1616
process.env.SEMAPHORE_WORKFLOW_ID = '65c9bb1c-aeb6-41f0-b8d9-6fa177241cdf'
17-
expect(semaphore.detect()).toBe(true)
17+
expect(semaphore2.detect()).toBe(true)
1818
})
1919

2020
it('does not detect semaphore 1.x', function() {
2121
process.env.SEMAPHORE = 'true'
2222
process.env.SEMAPHORE_REPO_SLUG = 'owner/repo'
23-
expect(semaphore.detect()).toBe(false)
23+
expect(semaphore2.detect()).toBe(false)
2424
})
2525

2626
it('can get semaphore env info', function() {
2727
process.env.SEMAPHORE_GIT_BRANCH = 'development'
2828
process.env.SEMAPHORE_GIT_SHA = '5c84719708b9b649b9ef3b56af214f38cee6acde'
2929
process.env.SEMAPHORE_WORKFLOW_ID = '65c9bb1c-aeb6-41f0-b8d9-6fa177241cdf'
30-
expect(semaphore.configuration()).toEqual({
30+
expect(semaphore2.configuration()).toEqual({
3131
service: 'semaphore2x',
3232
branch: 'development',
3333
build: '65c9bb1c-aeb6-41f0-b8d9-6fa177241cdf',

0 commit comments

Comments
 (0)