aboutsummaryrefslogtreecommitdiffstats
path: root/test/react/Portal.spec.js
blob: 864b342c75d5a08c62b264fa7d9144588b759af7 (plain)
1
2
3
4
5
6
7
8
9
10
import React from 'react';
import {mount} from 'enzyme';
import Portal from '../../src/react/Portal';

describe('Portal',()=>{
	test('portal basic', ()=>{                 
		const portal = mount(<Portal><strong>Message</strong></Portal>);        
		expect(portal.find(Portal).exists()).toBe(true);       
    });    
});