+ cd /testbed
+ git config --global --add safe.directory /testbed
+ cd /testbed
+ git checkout 6812e4b9ed2cbf65cf7ecaba2ff5fcb75e37865b client/state/help/test/selectors.js
Updated 0 paths from 6b92b5226
+ git apply --verbose --reject -
Checking patch client/state/help/test/selectors.js...
Applied patch client/state/help/test/selectors.js cleanly.
+ : '>>>>> Start Test Output'
+ ./node_modules/.bin/jest --verbose -c=test/client/jest.config.json client/state/help/test/selectors.js
FAIL client/state/help/test/selectors.js
  selectors
    #getHelpSiteId()
      ✓ should return null for default state (2ms)
      ✓ should return courses for given state (1ms)
    #getHelpSelectedSiteId()
      ✓ defaults to customer chosen site (1ms)
      ✓ uses selected site if customer selected site is not available (1ms)
      ✓ uses primary site if customer selected site or global selected site is not available
      ✕ if customer selected site is not available, uses first site (9ms)
      ✕ if selected site is not available, uses first site (1ms)
      ✓ if sites are not loaded, returns null

  ● selectors › #getHelpSelectedSiteId() › if customer selected site is not available, uses first site

    expect(received).toEqual(expected)
    
    Expected value to equal:
      2916284
    Received:
      null
    
    Difference:
    
      Comparing two different types of values. Expected number but received null.

      154 | 				},
      155 | 			} );
    > 156 | 			expect( getHelpSelectedSiteId( state ) ).toEqual( 2916284 );
      157 | 		} );
      158 |
      159 | 		test( 'if selected site is not available, uses first site', () => {
      
      at Object.<anonymous> (client/state/help/test/selectors.js:156:45)

  ● selectors › #getHelpSelectedSiteId() › if selected site is not available, uses first site

    expect(received).toEqual(expected)
    
    Expected value to equal:
      77203074
    Received:
      null
    
    Difference:
    
      Comparing two different types of values. Expected number but received null.

      183 | 				},
      184 | 			} );
    > 185 | 			expect( getHelpSelectedSiteId( state ) ).toEqual( 77203074 );
      186 | 		} );
      187 |
      188 | 		test( 'if sites are not loaded, returns null', () => {
      
      at Object.<anonymous> (client/state/help/test/selectors.js:185:45)

Test Suites: 1 failed, 1 total
Tests:       2 failed, 6 passed, 8 total
Snapshots:   0 total
Time:        2.139s
Ran all test suites matching /client\/state\/help\/test\/selectors.js/i.
+ : '>>>>> End Test Output'
+ git checkout 6812e4b9ed2cbf65cf7ecaba2ff5fcb75e37865b client/state/help/test/selectors.js
Updated 1 path from 6b92b5226
