@@ -41,7 +41,12 @@ test('flags', async () => {
4141// some expected fake values
4242const expectedEntities = { fake : 'entities' }
4343const expectedEntitiesFromGet = { fakeGet : 'getentities' }
44- const expectedOWOptions = { api_key : 'some-gibberish-not-a-real-key' , apihost : 'some.host' , apiversion : 'v1' , namespace : 'some_namespace' }
44+ const expectedOWOptions = {
45+ api_key : 'some-gibberish-not-a-real-key' ,
46+ apihost : 'some.host' ,
47+ apiversion : 'v1' ,
48+ namespace : 'some_namespace'
49+ }
4550const expectedDepPackages = { fake : 'dep-packages' }
4651const expectedDepTriggers = [ { fake : 'dep-triggers' } ]
4752const expectedPackages = { fake : 'packages' }
@@ -75,7 +80,10 @@ describe('instance methods', () => {
7580 test ( 'run with no flags' , async ( ) => {
7681 command . argv = [ ]
7782 await command . run ( )
78- expect ( utils . setPaths ) . toHaveBeenCalledWith ( { useragent : pkgNameVersion } )
83+ expect ( utils . setPaths ) . toHaveBeenCalledWith ( {
84+ 'use-runtime-auth' : false ,
85+ useragent : pkgNameVersion
86+ } )
7987
8088 expect ( utils . processPackage ) . toHaveBeenCalledWith ( expectedPackages , { } , { } , { } , true , expectedOWOptions )
8189 expect ( utils . getProjectEntities ) . not . toHaveBeenCalled ( )
@@ -88,7 +96,11 @@ describe('instance methods', () => {
8896 test ( 'run with manifest flag' , async ( ) => {
8997 command . argv = [ '-m' , 'fake-manifest.yml' ]
9098 await command . run ( )
91- expect ( utils . setPaths ) . toHaveBeenCalledWith ( { manifest : 'fake-manifest.yml' , useragent : pkgNameVersion } )
99+ expect ( utils . setPaths ) . toHaveBeenCalledWith ( {
100+ 'use-runtime-auth' : false ,
101+ manifest : 'fake-manifest.yml' ,
102+ useragent : pkgNameVersion
103+ } )
92104
93105 expect ( utils . processPackage ) . toHaveBeenCalledWith ( expectedPackages , { } , { } , { } , true , expectedOWOptions )
94106 expect ( utils . getProjectEntities ) . not . toHaveBeenCalled ( )
0 commit comments