Skip to content

Commit 256c0ba

Browse files
author
Kristján Oddsson
committedMay 22, 2017
loading/tests: wrap component in fela context
Related-to: cloudflare#100
1 parent 02cf3dc commit 256c0ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import React from 'react';
22
import renderer from 'react-test-renderer';
33
import Loading from '../../cf-component-loading/src/index';
4+
import felaTestContext from '../../../felaTestContext';
45

56
test('should render', () => {
6-
const component = renderer.create(<Loading />);
7+
const component = renderer.create(felaTestContext(<Loading />));
78
expect(component.toJSON()).toMatchSnapshot();
89
});

0 commit comments

Comments
 (0)