+ cd /testbed
+ git config --global --add safe.directory /testbed
+ cd /testbed
+ git checkout f508d4e9938e80e888deb2dc8cada6d84e116427 tests/background.test.js tests/borders.test.js tests/utils/dummyRoot.js
Updated 0 paths from 359441e
+ git apply --verbose --reject -
Checking patch tests/background.test.js...
Checking patch tests/borders.test.js...
Checking patch tests/utils/dummyRoot.js...
Applied patch tests/background.test.js cleanly.
Applied patch tests/borders.test.js cleanly.
Applied patch tests/utils/dummyRoot.js cleanly.
+ : '>>>>> Start Test Output'
+ ./node_modules/.bin/jest --no-color
PASS tests/pageSize.test.js
PASS tests/node.test.js
PASS tests/font.test.js
PASS tests/base.test.js
PASS tests/view.test.js
PASS tests/url.test.js
PASS tests/cache.test.js
FAIL tests/image.test.js
  ● Console

    console.warn src/elements/Image.js:94
      Not valid image extension
    console.warn src/elements/Image.js:94
      Not valid image extension
    console.warn src/elements/Image.js:94
      Not valid image extension
    console.warn src/elements/Image.js:94
      Not valid image extension
    console.warn src/elements/Image.js:94
      Not valid image extension
    console.warn src/elements/Image.js:94
      Not valid image extension

  ● Image › Should render a jpeg image over http

    expect(received).toBeTruthy()

    Received: undefined

      28 |     await image.render();
      29 |
    > 30 |     expect(image.image.data).toBeTruthy();
         |                              ^
      31 |     expect(dummyRoot.instance.image.mock.calls).toHaveLength(1);
      32 |     expect(dummyRoot.instance.image.mock.calls[0][0]).toBe(image.image.data);
      33 |   });

      at Object.test (tests/image.test.js:30:30)

  ● Image › Should render a png image over http

    expect(received).toBeTruthy()

    Received: undefined

      39 |     await image.render();
      40 |
    > 41 |     expect(image.image.data).toBeTruthy();
         |                              ^
      42 |     expect(dummyRoot.instance.image.mock.calls).toHaveLength(1);
      43 |     expect(dummyRoot.instance.image.mock.calls[0][0]).toBe(image.image.data);
      44 |   });

      at Object.test (tests/image.test.js:41:30)

  ● Image › Should cache previously loaded remote images by default

    expect(received).toBe(expected) // Object.is equality

    Expected: {"height": 0, "width": 0}
    Received: {"height": 0, "width": 0}

    Difference:

    Compared values have no visual difference. Note that you are testing for equality with the stricter `toBe` matcher using `Object.is`. For deep equality only, use `toEqual` instead.

      150 |     await image2.fetch();
      151 |
    > 152 |     expect(image1.image).toBe(image2.image);
          |                          ^
      153 |   });
      154 |
      155 |   test('Should not cache previously loaded remote images if flag false', async () => {

      at Object.test (tests/image.test.js:152:26)

PASS tests/jpeg.test.js
PASS tests/png.test.js
PASS tests/attributedString.test.js
PASS tests/document.test.js
PASS tests/stylesheet.test.js
PASS tests/elements.test.js
PASS tests/roundedBorders.test.js
PASS tests/note.test.js
PASS tests/page.test.js
PASS tests/link.test.js
FAIL tests/borders.test.js
  ● Borders › Should render solid border

    expect(received).toBe(expected) // Object.is equality

    Expected: 4
    Received: 2

      24 |
      25 |     expect(dummyRoot.instance.lineWidth.mock.calls).toHaveLength(1);
    > 26 |     expect(dummyRoot.instance.lineWidth.mock.calls[0][0]).toBe(4);
         |                                                           ^
      27 |     expect(dummyRoot.instance.stroke.mock.calls).toHaveLength(1);
      28 |     expect(dummyRoot.instance.dash.mock.calls).toHaveLength(0);
      29 |   });

      at Object.test (tests/borders.test.js:26:59)

  ● Borders › Should render dashed border

    expect(received).toBe(expected) // Object.is equality

    Expected: 4
    Received: 2

      42 |
      43 |     expect(dummyRoot.instance.lineWidth.mock.calls).toHaveLength(1);
    > 44 |     expect(dummyRoot.instance.lineWidth.mock.calls[0][0]).toBe(4);
         |                                                           ^
      45 |     expect(dummyRoot.instance.stroke.mock.calls).toHaveLength(1);
      46 |     expect(dummyRoot.instance.dash.mock.calls).toHaveLength(1);
      47 |     expect(dummyRoot.instance.dash.mock.calls[0][0]).toBe(4);

      at Object.test (tests/borders.test.js:44:59)

  ● Borders › Should render dotted border

    expect(received).toBe(expected) // Object.is equality

    Expected: 4
    Received: 2

      61 |
      62 |     expect(dummyRoot.instance.lineWidth.mock.calls).toHaveLength(1);
    > 63 |     expect(dummyRoot.instance.lineWidth.mock.calls[0][0]).toBe(4);
         |                                                           ^
      64 |     expect(dummyRoot.instance.stroke.mock.calls).toHaveLength(1);
      65 |     expect(dummyRoot.instance.dash.mock.calls).toHaveLength(1);
      66 |     expect(dummyRoot.instance.dash.mock.calls[0][0]).toBe(2);

      at Object.test (tests/borders.test.js:63:59)

PASS tests/transform.test.js
FAIL tests/background.test.js
  ● Background › Should render sharp background correctly

    expect(received).toEqual(expected)

    Expected value to equal:
      [0, 0, 50, 50]
    Received:
      undefined

    Difference:

      Comparing two different types of values. Expected array but received undefined.

      25 |     expect(dummyRoot.instance.fillColor.mock.calls).toHaveLength(1);
      26 |     expect(dummyRoot.instance.fillColor.mock.calls[0][0]).toBe('tomato');
    > 27 |     expect(dummyRoot.instance.rect.mock.calls[0]).toEqual([0, 0, 50, 50]);
         |                                                   ^
      28 |     expect(dummyRoot.instance.fill.mock.calls).toHaveLength(1);
      29 |   });
      30 |

      at Object.test (tests/background.test.js:27:51)

  ● Background › Should render sharp background correctly ignoring margins

    expect(received).toEqual(expected)

    Expected value to equal:
      [40, 40, 50, 50]
    Received:
      undefined

    Difference:

      Comparing two different types of values. Expected array but received undefined.

      43 |     expect(dummyRoot.instance.fillColor.mock.calls).toHaveLength(1);
      44 |     expect(dummyRoot.instance.fillColor.mock.calls[0][0]).toBe('tomato');
    > 45 |     expect(dummyRoot.instance.rect.mock.calls[0]).toEqual([40, 40, 50, 50]);
         |                                                   ^
      46 |     expect(dummyRoot.instance.fill.mock.calls).toHaveLength(1);
      47 |   });
      48 |

      at Object.test (tests/background.test.js:45:51)

  ● Background › Should render sharp background correctly including paddings

    expect(received).toEqual(expected)

    Expected value to equal:
      [0, 0, 50, 50]
    Received:
      undefined

    Difference:

      Comparing two different types of values. Expected array but received undefined.

      61 |     expect(dummyRoot.instance.fillColor.mock.calls).toHaveLength(1);
      62 |     expect(dummyRoot.instance.fillColor.mock.calls[0][0]).toBe('tomato');
    > 63 |     expect(dummyRoot.instance.rect.mock.calls[0]).toEqual([0, 0, 50, 50]);
         |                                                   ^
      64 |     expect(dummyRoot.instance.fill.mock.calls).toHaveLength(1);
      65 |   });
      66 |

      at Object.test (tests/background.test.js:63:51)

  ● Background › Should render rounded background correctly

    expect(received).toEqual(expected)

    Expected value to equal:
      [0, 0, 50, 50]
    Received:
      undefined

    Difference:

      Comparing two different types of values. Expected array but received undefined.

      84 |     expect(dummyRoot.instance.fillColor.mock.calls).toHaveLength(1);
      85 |     expect(dummyRoot.instance.fillColor.mock.calls[0][0]).toBe('tomato');
    > 86 |     expect(dummyRoot.instance.rect.mock.calls[0]).toEqual([0, 0, 50, 50]);
         |                                                   ^
      87 |     expect(dummyRoot.instance.fill.mock.calls).toHaveLength(1);
      88 |   });
      89 | });

      at Object.test (tests/background.test.js:86:51)

PASS tests/domApi.test.js
PASS tests/pdf.test.js
PASS tests/layout.test.js
  ● Console

    console.warn src/elements/Image.js:94
      Not valid image extension
    console.warn src/elements/Image.js:94
      Not valid image extension

PASS tests/text.test.js
PASS tests/nodeApi.test.js

Summary of all failing tests
FAIL tests/image.test.js
  ● Image › Should render a jpeg image over http

    expect(received).toBeTruthy()

    Received: undefined

      28 |     await image.render();
      29 |
    > 30 |     expect(image.image.data).toBeTruthy();
         |                              ^
      31 |     expect(dummyRoot.instance.image.mock.calls).toHaveLength(1);
      32 |     expect(dummyRoot.instance.image.mock.calls[0][0]).toBe(image.image.data);
      33 |   });

      at Object.test (tests/image.test.js:30:30)

  ● Image › Should render a png image over http

    expect(received).toBeTruthy()

    Received: undefined

      39 |     await image.render();
      40 |
    > 41 |     expect(image.image.data).toBeTruthy();
         |                              ^
      42 |     expect(dummyRoot.instance.image.mock.calls).toHaveLength(1);
      43 |     expect(dummyRoot.instance.image.mock.calls[0][0]).toBe(image.image.data);
      44 |   });

      at Object.test (tests/image.test.js:41:30)

  ● Image › Should cache previously loaded remote images by default

    expect(received).toBe(expected) // Object.is equality

    Expected: {"height": 0, "width": 0}
    Received: {"height": 0, "width": 0}

    Difference:

    Compared values have no visual difference. Note that you are testing for equality with the stricter `toBe` matcher using `Object.is`. For deep equality only, use `toEqual` instead.

      150 |     await image2.fetch();
      151 |
    > 152 |     expect(image1.image).toBe(image2.image);
          |                          ^
      153 |   });
      154 |
      155 |   test('Should not cache previously loaded remote images if flag false', async () => {

      at Object.test (tests/image.test.js:152:26)

FAIL tests/borders.test.js
  ● Borders › Should render solid border

    expect(received).toBe(expected) // Object.is equality

    Expected: 4
    Received: 2

      24 |
      25 |     expect(dummyRoot.instance.lineWidth.mock.calls).toHaveLength(1);
    > 26 |     expect(dummyRoot.instance.lineWidth.mock.calls[0][0]).toBe(4);
         |                                                           ^
      27 |     expect(dummyRoot.instance.stroke.mock.calls).toHaveLength(1);
      28 |     expect(dummyRoot.instance.dash.mock.calls).toHaveLength(0);
      29 |   });

      at Object.test (tests/borders.test.js:26:59)

  ● Borders › Should render dashed border

    expect(received).toBe(expected) // Object.is equality

    Expected: 4
    Received: 2

      42 |
      43 |     expect(dummyRoot.instance.lineWidth.mock.calls).toHaveLength(1);
    > 44 |     expect(dummyRoot.instance.lineWidth.mock.calls[0][0]).toBe(4);
         |                                                           ^
      45 |     expect(dummyRoot.instance.stroke.mock.calls).toHaveLength(1);
      46 |     expect(dummyRoot.instance.dash.mock.calls).toHaveLength(1);
      47 |     expect(dummyRoot.instance.dash.mock.calls[0][0]).toBe(4);

      at Object.test (tests/borders.test.js:44:59)

  ● Borders › Should render dotted border

    expect(received).toBe(expected) // Object.is equality

    Expected: 4
    Received: 2

      61 |
      62 |     expect(dummyRoot.instance.lineWidth.mock.calls).toHaveLength(1);
    > 63 |     expect(dummyRoot.instance.lineWidth.mock.calls[0][0]).toBe(4);
         |                                                           ^
      64 |     expect(dummyRoot.instance.stroke.mock.calls).toHaveLength(1);
      65 |     expect(dummyRoot.instance.dash.mock.calls).toHaveLength(1);
      66 |     expect(dummyRoot.instance.dash.mock.calls[0][0]).toBe(2);

      at Object.test (tests/borders.test.js:63:59)

FAIL tests/background.test.js
  ● Background › Should render sharp background correctly

    expect(received).toEqual(expected)

    Expected value to equal:
      [0, 0, 50, 50]
    Received:
      undefined

    Difference:

      Comparing two different types of values. Expected array but received undefined.

      25 |     expect(dummyRoot.instance.fillColor.mock.calls).toHaveLength(1);
      26 |     expect(dummyRoot.instance.fillColor.mock.calls[0][0]).toBe('tomato');
    > 27 |     expect(dummyRoot.instance.rect.mock.calls[0]).toEqual([0, 0, 50, 50]);
         |                                                   ^
      28 |     expect(dummyRoot.instance.fill.mock.calls).toHaveLength(1);
      29 |   });
      30 |

      at Object.test (tests/background.test.js:27:51)

  ● Background › Should render sharp background correctly ignoring margins

    expect(received).toEqual(expected)

    Expected value to equal:
      [40, 40, 50, 50]
    Received:
      undefined

    Difference:

      Comparing two different types of values. Expected array but received undefined.

      43 |     expect(dummyRoot.instance.fillColor.mock.calls).toHaveLength(1);
      44 |     expect(dummyRoot.instance.fillColor.mock.calls[0][0]).toBe('tomato');
    > 45 |     expect(dummyRoot.instance.rect.mock.calls[0]).toEqual([40, 40, 50, 50]);
         |                                                   ^
      46 |     expect(dummyRoot.instance.fill.mock.calls).toHaveLength(1);
      47 |   });
      48 |

      at Object.test (tests/background.test.js:45:51)

  ● Background › Should render sharp background correctly including paddings

    expect(received).toEqual(expected)

    Expected value to equal:
      [0, 0, 50, 50]
    Received:
      undefined

    Difference:

      Comparing two different types of values. Expected array but received undefined.

      61 |     expect(dummyRoot.instance.fillColor.mock.calls).toHaveLength(1);
      62 |     expect(dummyRoot.instance.fillColor.mock.calls[0][0]).toBe('tomato');
    > 63 |     expect(dummyRoot.instance.rect.mock.calls[0]).toEqual([0, 0, 50, 50]);
         |                                                   ^
      64 |     expect(dummyRoot.instance.fill.mock.calls).toHaveLength(1);
      65 |   });
      66 |

      at Object.test (tests/background.test.js:63:51)

  ● Background › Should render rounded background correctly

    expect(received).toEqual(expected)

    Expected value to equal:
      [0, 0, 50, 50]
    Received:
      undefined

    Difference:

      Comparing two different types of values. Expected array but received undefined.

      84 |     expect(dummyRoot.instance.fillColor.mock.calls).toHaveLength(1);
      85 |     expect(dummyRoot.instance.fillColor.mock.calls[0][0]).toBe('tomato');
    > 86 |     expect(dummyRoot.instance.rect.mock.calls[0]).toEqual([0, 0, 50, 50]);
         |                                                   ^
      87 |     expect(dummyRoot.instance.fill.mock.calls).toHaveLength(1);
      88 |   });
      89 | });

      at Object.test (tests/background.test.js:86:51)


Test Suites: 3 failed, 23 passed, 26 total
Tests:       10 failed, 264 passed, 274 total
Snapshots:   0 total
Time:        11.853s
Ran all test suites.
+ : '>>>>> End Test Output'
+ git checkout f508d4e9938e80e888deb2dc8cada6d84e116427 tests/background.test.js tests/borders.test.js tests/utils/dummyRoot.js
Updated 3 paths from 359441e
