This repository was archived by the owner on Oct 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
es6-babel-react-flux-karma Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ import './dependencies';
2
2
import * as React from 'react' ;
3
3
import * as ReactDOM from 'react-dom' ;
4
4
import App from './components/App' ;
5
- const __react = React ; // only in place to prevent React being purged from dependencies as not used directly
5
+ React ; // use React as an expression to prevent React being purged from dependencies as not used directly
6
6
7
7
ReactDOM . render ( < App /> , document . getElementById ( 'content' ) ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import App from '../../src/components/App';
4
4
import WhoToGreet from '../../src/components/WhoToGreet' ;
5
5
import Greeting from '../../src/components/Greeting' ;
6
6
import GreetingStore from '../../src/stores/GreetingStore' ;
7
- const __react = React ; // only in place to prevent React being purged from dependencies as not used directly
7
+ React ; // use React as an expression to prevent React being purged from dependencies as not used directly
8
8
9
9
describe ( 'App' , ( ) => {
10
10
it ( 'renders expected HTML' , ( ) => {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import * as React from 'react';
2
2
import * as TestUtils from 'react-addons-test-utils' ;
3
3
import Greeting from '../../src/components/Greeting' ;
4
4
import * as GreetingActions from '../../src/actions/GreetingActions' ;
5
- const __react = React ; // only in place to prevent React being purged from dependencies as not used directly
5
+ React ; // use React as an expression to prevent React being purged from dependencies as not used directly
6
6
7
7
describe ( 'Greeting' , ( ) => {
8
8
let handleSelectionChangeSpy : jasmine . Spy ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import * as React from 'react';
2
2
import * as TestUtils from 'react-addons-test-utils' ;
3
3
import WhoToGreet from '../../src/components/WhoToGreet' ;
4
4
import * as GreetingActions from '../../src/actions/GreetingActions' ;
5
- const __react = React ; // only in place to prevent React being purged from dependencies as not used directly
5
+ React ; // use React as an expression to prevent React being purged from dependencies as not used directly
6
6
7
7
describe ( 'WhoToGreet' , ( ) => {
8
8
let handleSelectionChangeSpy : jasmine . Spy ;
You can’t perform that action at this time.
0 commit comments