import a from "../src/a" ; import b from "../src/b" ; import c from "../src/c" ; import d from "../src/d" ; declare var require ; describe ( "app" , ( ) => { it ( "a to be 'a' and b to be 'b'" , ( ) => { expect ( a ) . toBe ( "a" ) ; expect ( b ) . toBe ( "b" ) ; } ) ; it ( "within require.ensure c to be 'c' and d to be 'd'" , done => { require . ensure ( [ "../src/c" , "../src/d" ] , function ( require ) { var cModule = < { default : typeof c ; } > require ( "../src/c" ) ; var dModule = < { default : typeof d ; } > require ( "../src/d" ) ; expect ( cModule . default ) . toBe ( "c" ) ; expect ( dModule . default ) . toBe ( "d" ) ; done ( ) ; } ) ; } ) ; } ) ;