2017-09-06 10:18:37 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2017-present, Facebook, Inc.
|
|
|
|
*
|
2018-02-17 02:24:55 +00: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 13:14:11 +00:00
|
|
|
*
|
|
|
|
* @emails oncall+react_native
|
2017-09-06 10:18:37 +00: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', () => {
|
|
|
|
expect(ReactTestRenderer.create(
|
|
|
|
<View>
|
|
|
|
<Image source={require('./img/img1.png')} />
|
|
|
|
<Image source={require('./img/img2.png')} />
|
|
|
|
</View>
|
|
|
|
)).toMatchSnapshot();
|
|
|
|
});
|