These are chat archives for systemaccounting/mxfactorial

1st
Sep 2016
coolcode2015
@coolcode2015
Sep 01 2016 09:03
Hi @mxfactorial
Max Funk
@mxfactorial
Sep 01 2016 09:03
Yes, Paul.
coolcode2015
@coolcode2015
Sep 01 2016 09:04
I noticed my commit decrease code coverage 0.08 %, because I did not make testing code for my additional code
but I am not familiar current testing code template.
@mxfactorial Are you around ?
Max Funk
@mxfactorial
Sep 01 2016 09:08
It's late here, so I'm signing off. But ask @hotay to assist you by recommending a test for your commit.
coolcode2015
@coolcode2015
Sep 01 2016 09:09
@mxfactorial thanks, Good night
Hello @hotay
coolcode2015
@coolcode2015
Sep 01 2016 17:11
Hi Max.
Of course, I know which file is testing file for my works.. but my concern is only I am not familiar with current testing code...
Max Funk
@mxfactorial
Sep 01 2016 17:25
@PaulJosten Use ParentComponent defined in mocha test case
class ParentComponent extends {
}
coolcode2015
@coolcode2015
Sep 01 2016 17:26
thanks, will try. and I am spending some hours to getting familiar with ReactJS Testing code
Max Funk
@mxfactorial
Sep 01 2016 17:27
Ho Tay says, specifically:
class ParentComponent extends {
  constructor(props) {
    super(props);
    this.state = {
       // children props goes here
    }
  }

  render() {
    // render children with props here
  }
}
@PaulJosten there you can test the componentWillReceiveProps
i.e. must define one component like that to test componentWillReceiveProps
Ho Tay is awaiting response from GitHub support to sort out an authentication issue. Will be available once the issue is resolved.
Max Funk
@mxfactorial
Sep 01 2016 17:33
@PaulJosten Ho Tay also insists you'll recognize this approach as applicable to testing the react component lifecycle.
Recommends article about testing componentWillReceiveProps: http://jaketrent.com/post/test-react-componentwillreceiveprops/
Same way he's written , but in ES5.
coolcode2015
@coolcode2015
Sep 01 2016 17:35
@mxfactorial thanks.
coolcode2015
@coolcode2015
Sep 01 2016 19:29
@hotay can i have quick question? how to test the input tag’s value is equal with something?
@mxfactorial much appreciated if you know the answer of above question.
coolcode2015
@coolcode2015
Sep 01 2016 19:50
@klishevich thanks, Will check
@hotay @mxfactorial nvm, i found the solutions. thanks anyway
@klishevich i already pushed the UT waiting coverall.io
@mxfactorial just My testing code passed for coverall.io.
@mxfactorial please check and reply your suggestion.
Max Funk
@mxfactorial
Sep 01 2016 19:54
@PaulJosten Testing now.
Max Funk
@mxfactorial
Sep 01 2016 20:02
systemaccounting/mxfactorial#59 was merged to master.
coolcode2015
@coolcode2015
Sep 01 2016 20:03
cool