  console.warn node_modules/superagent/lib/node/index.js:575
    double callback!

+ cd /testbed
+ git config --global --add safe.directory /testbed
+ cd /testbed
+ git checkout 5f4c22c561a31972c973dc9dadd907836070bceb client/lib/credit-card-details/test/index.js
Updated 0 paths from 4577a70fa
+ git apply --verbose --reject -
Checking patch client/lib/credit-card-details/test/index.js...
Applied patch client/lib/credit-card-details/test/index.js cleanly.
+ : '>>>>> Start Test Output'
+ ./node_modules/.bin/jest --verbose -c=test/client/jest.config.json client/lib/credit-card-details/test/index.js
FAIL client/lib/credit-card-details/test/index.js (5.645s)
  index
    Validation
      Discover Card: starts with 6011, 64, 65
        ✓ should not return Discover for 622125 (1ms)
        ✓ should return `discover` for 6011000990139424
        ✓ should return `discover` for 6445644564456445
      Mastercard: range 2221-2720
        ✓ should return `mastercard` for 2221000000000000
        ✓ should return `mastercard` for 2720990000000000
        ✓ should return `mastercard` for 2223003122003222
      Mastercard: range 51-55
        ✓ should not return mastercard for 5099999999999999
        ✓ should return `mastercard` for 5100000000000000
        ✓ should return `mastercard` for 5599000000000000
        ✓ should not return mastercard for 5600000000000000
      American Express
        ✓ should return `amex` for 370000000000002
        ✓ should return `amex` for 378282246310005
      Visa
        ✓ should return `visa` for 4242424242424242
        ✓ should return `visa` for 4000000400000008
      Other Brands
        ✓ should return `jcb` for 3530111333300000
        ✓ should return `diners` for 30569309025904
        ✓ should return `diners` for 38520000023237
        ✓ should return `unionpay` for 6240008631401148
    Masking
      American Express Card
        ✕ formats a number as 4-6-5 (8ms)
        ✕ formats a number as 4-6-5 with any sort of whitespace
        ✕ formats a number as 4-6-5 and trims to 15 digits
      Diner Credit Cards
        ✕ formats a number as 4-4-4-2 (1ms)
        ✕ formats a number as 4-4-4-2 with any sort of whitespace
      All Other Credit Cards
        ✕ formats a number as 4-4-4-4
        ✕ formats a number as 4-4-4-4 with any sort of whitespace
        ✕ 19 digit cards format as 4-4-4-7
        ✕ has a maximum length of 19 (1ms)

  ● index › Masking › American Express Card › formats a number as 4-6-5

    TypeError: (0 , _masking.formatCreditCard) is not a function

      107 | 		describe( 'American Express Card', () => {
      108 | 			test( 'formats a number as 4-6-5', () => {
    > 109 | 				expect( formatCreditCard( '378282246310005' ) ).toEqual( '3782 822463 10005' );
      110 | 			} );
      111 | 			test( 'formats a number as 4-6-5 with any sort of whitespace', () => {
      112 | 				expect( formatCreditCard( ' 3782 8224 6310 005 ' ) ).toEqual( '3782 822463 10005' );
      
      at Object.<anonymous> (client/lib/credit-card-details/test/index.js:109:13)

  ● index › Masking › American Express Card › formats a number as 4-6-5 with any sort of whitespace

    TypeError: (0 , _masking.formatCreditCard) is not a function

      110 | 			} );
      111 | 			test( 'formats a number as 4-6-5 with any sort of whitespace', () => {
    > 112 | 				expect( formatCreditCard( ' 3782 8224 6310 005 ' ) ).toEqual( '3782 822463 10005' );
      113 | 			} );
      114 | 			test( 'formats a number as 4-6-5 and trims to 15 digits', () => {
      115 | 				expect( formatCreditCard( '37828224631000512345' ) ).toEqual( '3782 822463 10005' );
      
      at Object.<anonymous> (client/lib/credit-card-details/test/index.js:112:13)

  ● index › Masking › American Express Card › formats a number as 4-6-5 and trims to 15 digits

    TypeError: (0 , _masking.formatCreditCard) is not a function

      113 | 			} );
      114 | 			test( 'formats a number as 4-6-5 and trims to 15 digits', () => {
    > 115 | 				expect( formatCreditCard( '37828224631000512345' ) ).toEqual( '3782 822463 10005' );
      116 | 			} );
      117 | 		} );
      118 | 		describe( 'Diner Credit Cards', () => {
      
      at Object.<anonymous> (client/lib/credit-card-details/test/index.js:115:13)

  ● index › Masking › Diner Credit Cards › formats a number as 4-4-4-2

    TypeError: (0 , _masking.formatCreditCard) is not a function

      118 | 		describe( 'Diner Credit Cards', () => {
      119 | 			test( 'formats a number as 4-4-4-2', () => {
    > 120 | 				expect( formatCreditCard( '30569309025904' ) ).toEqual( '3056 9309 0259 04' );
      121 | 			} );
      122 | 			test( 'formats a number as 4-4-4-2 with any sort of whitespace', () => {
      123 | 				expect( formatCreditCard( '3056 9309 025   904' ) ).toEqual( '3056 9309 0259 04' );
      
      at Object.<anonymous> (client/lib/credit-card-details/test/index.js:120:13)

  ● index › Masking › Diner Credit Cards › formats a number as 4-4-4-2 with any sort of whitespace

    TypeError: (0 , _masking.formatCreditCard) is not a function

      121 | 			} );
      122 | 			test( 'formats a number as 4-4-4-2 with any sort of whitespace', () => {
    > 123 | 				expect( formatCreditCard( '3056 9309 025   904' ) ).toEqual( '3056 9309 0259 04' );
      124 | 			} );
      125 | 		} );
      126 | 		describe( 'All Other Credit Cards', () => {
      
      at Object.<anonymous> (client/lib/credit-card-details/test/index.js:123:13)

  ● index › Masking › All Other Credit Cards › formats a number as 4-4-4-4

    TypeError: (0 , _masking.formatCreditCard) is not a function

      126 | 		describe( 'All Other Credit Cards', () => {
      127 | 			test( 'formats a number as 4-4-4-4', () => {
    > 128 | 				expect( formatCreditCard( '2223003122003222' ) ).toEqual( '2223 0031 2200 3222' );
      129 | 			} );
      130 | 			test( 'formats a number as 4-4-4-4 with any sort of whitespace', () => {
      131 | 				expect( formatCreditCard( '2223 0031220     03222' ) ).toEqual( '2223 0031 2200 3222' );
      
      at Object.<anonymous> (client/lib/credit-card-details/test/index.js:128:13)

  ● index › Masking › All Other Credit Cards › formats a number as 4-4-4-4 with any sort of whitespace

    TypeError: (0 , _masking.formatCreditCard) is not a function

      129 | 			} );
      130 | 			test( 'formats a number as 4-4-4-4 with any sort of whitespace', () => {
    > 131 | 				expect( formatCreditCard( '2223 0031220     03222' ) ).toEqual( '2223 0031 2200 3222' );
      132 | 			} );
      133 | 			test( '19 digit cards format as 4-4-4-7', () => {
      134 | 				expect( formatCreditCard( '6011496233608973938' ) ).toEqual( '6011 4962 3360 8973938' );
      
      at Object.<anonymous> (client/lib/credit-card-details/test/index.js:131:13)

  ● index › Masking › All Other Credit Cards › 19 digit cards format as 4-4-4-7

    TypeError: (0 , _masking.formatCreditCard) is not a function

      132 | 			} );
      133 | 			test( '19 digit cards format as 4-4-4-7', () => {
    > 134 | 				expect( formatCreditCard( '6011496233608973938' ) ).toEqual( '6011 4962 3360 8973938' );
      135 | 			} );
      136 | 			test( 'has a maximum length of 19', () => {
      137 | 				expect( formatCreditCard( '6011496233608973938123456789' ) ).toEqual(
      
      at Object.<anonymous> (client/lib/credit-card-details/test/index.js:134:13)

  ● index › Masking › All Other Credit Cards › has a maximum length of 19

    TypeError: (0 , _masking.formatCreditCard) is not a function

      135 | 			} );
      136 | 			test( 'has a maximum length of 19', () => {
    > 137 | 				expect( formatCreditCard( '6011496233608973938123456789' ) ).toEqual(
      138 | 					'6011 4962 3360 8973938'
      139 | 				);
      140 | 			} );
      
      at Object.<anonymous> (client/lib/credit-card-details/test/index.js:137:13)

Test Suites: 1 failed, 1 total
Tests:       9 failed, 18 passed, 27 total
Snapshots:   0 total
Time:        6.308s
Ran all test suites matching /client\/lib\/credit-card-details\/test\/index.js/i.
+ : '>>>>> End Test Output'
+ git checkout 5f4c22c561a31972c973dc9dadd907836070bceb client/lib/credit-card-details/test/index.js
Updated 1 path from 4577a70fa
