@@ -52,32 +52,32 @@ class MixinTest extends FactoryTest implements HelperMixin {
5252 }
5353}
5454
55- describe ( "createFactory" , ( ) => {
55+ suite ( "createFactory" , ( ) => {
5656 var clazz : React . ComponentClass < FactoryProps > ;
5757 var factory : React . Factory < FactoryProps > ;
5858 var element : React . ReactElement < FactoryProps > ;
5959 var name = "test" ;
6060
61- beforeEach ( ( ) => {
61+ suiteSetup ( ( ) => {
6262 clazz = TypedReact . createClass ( FactoryTest ) ;
6363 factory = React . createFactory < FactoryProps > ( clazz ) ;
6464 element = factory ( {
6565 name : name
6666 } ) ;
6767 } ) ;
6868
69- it ( "should produce a valid element" , ( ) => {
69+ test ( "should produce a valid element" , ( ) => {
7070 assert . isTrue ( React . isValidElement ( element ) ) ;
7171 assert . equal ( element . props . name , name ) ;
7272 } ) ;
7373
74- it ( "should keep class properties" , ( ) => {
74+ test ( "should keep class properties" , ( ) => {
7575 assert . equal ( React . renderToStaticMarkup ( factory ( {
7676 name : "Asana"
7777 } ) ) , "<h1>Greetings, Asana</h1>" ) ;
7878 } ) ;
7979
80- it ( "should keep componentWillMount code" , ( ) => {
80+ test ( "should keep componentWillMount code" , ( ) => {
8181 var willMountClazz = TypedReact . createClass ( ComponentWillMountTest ) ;
8282 var willMountFactory = React . createFactory ( willMountClazz ) ;
8383 var wasCalled = false ;
@@ -90,15 +90,15 @@ describe("createFactory", () => {
9090 assert . isTrue ( wasCalled ) ;
9191 } ) ;
9292
93- it ( "should keep inherited methods and props" , ( ) => {
93+ test ( "should keep inherited methods and props" , ( ) => {
9494 var inheritedClazz = TypedReact . createClass ( InheritanceTest ) ;
9595 var inheritedFactory = React . createFactory ( inheritedClazz ) ;
9696 assert . equal ( React . renderToStaticMarkup ( inheritedFactory ( {
9797 name : "Asana"
9898 } ) ) , "<h1>Greetings, Asana</h1>" ) ;
9999 } ) ;
100100
101- it ( "should handle life cycle mixins" , ( ) => {
101+ test ( "should handle life cycle mixins" , ( ) => {
102102 var willMountClazz = TypedReact . createClass ( ComponentWillMountTest , [
103103 TypedReact . createMixin ( LifeCycleMixin )
104104 ] ) ;
@@ -113,7 +113,7 @@ describe("createFactory", () => {
113113 assert . equal ( callCount , 2 ) ;
114114 } ) ;
115115
116- it ( "should handle normal mixins" , ( ) => {
116+ test ( "should handle normal mixins" , ( ) => {
117117 var mixinClazz = TypedReact . createClass ( MixinTest , [
118118 TypedReact . createMixin ( HelperMixin )
119119 ] ) ;
0 commit comments