From 5edba02319e88d49614518011b490dab856389d2 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Mon, 5 Oct 2020 13:14:26 -0700 Subject: [PATCH] Add to Image tests --- .../__snapshots__/index-test.js.snap | 19 +++++++++++++++---- .../src/exports/Image/__tests__/index-test.js | 5 +++++ 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/packages/react-native-web/src/exports/Image/__tests__/__snapshots__/index-test.js.snap b/packages/react-native-web/src/exports/Image/__tests__/__snapshots__/index-test.js.snap index bee18f10..eb50cb6b 100644 --- a/packages/react-native-web/src/exports/Image/__tests__/__snapshots__/index-test.js.snap +++ b/packages/react-native-web/src/exports/Image/__tests__/__snapshots__/index-test.js.snap @@ -132,6 +132,17 @@ exports[`components/Image prop "draggable" 1`] = ` `; +exports[`components/Image prop "nativeID" 1`] = ` +
+
+
+`; + exports[`components/Image prop "resizeMode" value "contain" 1`] = `
{ expect(container.firstChild).toMatchSnapshot(); }); + test('prop "nativeID"', () => { + const { container } = render(); + expect(container.firstChild).toMatchSnapshot(); + }); + describe('prop "onLoad"', () => { test('is called after image is loaded from network', () => { jest.useFakeTimers();