@@ -124,8 +124,8 @@ test('AppVeyor - Not PR', function (t) {
124124} )
125125
126126test ( 'Azure Pipelines - PR' , function ( t ) {
127- process . env . SYSTEM_TEAMFOUNDATIONCOLLECTIONURI = 'https://dev.azure.com/Contoso '
128- process . env . SYSTEM_PULLREQUEST_PULLREQUESTID = '42 '
127+ process . env . TF_BUILD = 'true '
128+ process . env . BUILD_REASON = 'PullRequest '
129129
130130 clearModule ( './' )
131131 const ci = require ( './' )
@@ -136,14 +136,14 @@ test('Azure Pipelines - PR', function (t) {
136136 t . equal ( ci . AZURE_PIPELINES , true )
137137 assertVendorConstants ( 'AZURE_PIPELINES' , ci , t )
138138
139- delete process . env . SYSTEM_TEAMFOUNDATIONCOLLECTIONURI
140- delete process . env . SYSTEM_PULLREQUEST_PULLREQUESTID
139+ delete process . env . TF_BUILD
140+ delete process . env . BUILD_REASON
141141
142142 t . end ( )
143143} )
144144
145145test ( 'Azure Pipelines - Not PR' , function ( t ) {
146- process . env . SYSTEM_TEAMFOUNDATIONCOLLECTIONURI = 'https://dev.azure.com/Contoso '
146+ process . env . TF_BUILD = 'true '
147147
148148 clearModule ( './' )
149149 const ci = require ( './' )
@@ -154,7 +154,7 @@ test('Azure Pipelines - Not PR', function (t) {
154154 t . equal ( ci . AZURE_PIPELINES , true )
155155 assertVendorConstants ( 'AZURE_PIPELINES' , ci , t )
156156
157- delete process . env . SYSTEM_TEAMFOUNDATIONCOLLECTIONURI
157+ delete process . env . TF_BUILD
158158
159159 t . end ( )
160160} )
0 commit comments