2017-09-06 03:18:37 -07:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2017-present, Facebook, Inc.
|
|
|
|
*
|
2018-02-16 18:24:55 -08:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2017-11-02 06:14:11 -07:00
|
|
|
*
|
2018-05-10 19:06:46 -07:00
|
|
|
* @format
|
2017-11-02 06:14:11 -07:00
|
|
|
* @emails oncall+react_native
|
2017-09-06 03:18:37 -07:00
|
|
|
*/
|
2018-05-10 19:06:46 -07:00
|
|
|
|
2017-09-06 03:18:37 -07:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
jest.disableAutomock();
|
|
|
|
|
|
|
|
const React = require('React');
|
|
|
|
const ReactTestRenderer = require('react-test-renderer');
|
|
|
|
const Image = require('Image');
|
|
|
|
const View = require('View');
|
|
|
|
|
|
|
|
it('renders assets based on relative path', () => {
|
2018-05-10 19:06:46 -07:00
|
|
|
expect(
|
|
|
|
ReactTestRenderer.create(
|
|
|
|
<View>
|
|
|
|
<Image source={require('./img/img1.png')} />
|
|
|
|
<Image source={require('./img/img2.png')} />
|
|
|
|
</View>,
|
|
|
|
),
|
|
|
|
).toMatchSnapshot();
|
2017-09-06 03:18:37 -07:00
|
|
|
});
|