Skip to content

Commit

Permalink
Test basic import syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Feb 25, 2017
1 parent 3289c32 commit a373aec
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import React from 'react';
import ReactDOM from 'react-dom';
import Promises from './Promises';

describe('promises', () => {
it('renders without crashing', () => {
const div = document.createElement('div');
return new Promise(resolve => {
ReactDOM.render(<Promises onReady={resolve} />, div);
return import('./Promises').then(({ default: Promises }) => {
return new Promise(resolve => {
ReactDOM.render(<Promises onReady={resolve} />, div);
});
});
});
});

0 comments on commit a373aec

Please sign in to comment.