import * as React from 'react' ; import { create } from 'react-test-renderer' ; import { Greeting } from '../greeting' ; import { expect } from 'chai' ; import 'luis/types' ; describe ( 'Greeting' , ( ) => { const Component = ( ) => < Greeting name = "Tomas" / > ; it ( 'renders correctly' , ( ) => { expect ( create ( < Component />)).to.matchSnapshot(); } ) ; it ( 'fails' , ( ) => { expect ( '123' ) . to . equal ( '456' ) ; } ) ; it ( 'fails multiline' , ( ) => { expect ( { a : 1 , b : 2 , c : 3 } ) . to . equal ( { a : 1 , b : 3 , d : 4 , c : 3 , e : 6 } ) ; } ) ; it ( 'fails message' , ( ) => { expect ( 123 ) . to . be . greaterThan ( 456 ) ; } ) ; addStory ( { component : Component } ) ; } ) ;