import React from 'react';
import { Icon, InlineIcon } from '../../dist/offline';
import renderer from 'react-test-renderer';
const iconData = {
body:
'',
width: 24,
height: 24,
};
describe('Testing references', () => {
test('basic icon reference', () => {
let gotRef = false;
const component = renderer.create(
{
gotRef = true;
}}
/>
);
// Ref should have been called by now
expect(gotRef).toEqual(true);
});
test('inline icon reference', () => {
let gotRef = false;
const component = renderer.create(
{
gotRef = true;
}}
/>
);
// Ref should have been called by now
expect(gotRef).toEqual(true);
});
test('placeholder reference', () => {
let gotRef = false;
const component = renderer.create(
{
gotRef = true;
}}
/>
);
// Ref should not have been called
expect(gotRef).toEqual(false);
});
});