Amir Djavaherian

Results 18 comments of Amir Djavaherian

As per using require.extension, I've opened this question: http://stackoverflow.com/questions/28884377/better-way-to-require-extensions-with-node-js We'll see if the community has anything to say about it. As per "real then stub" @danvk is right, I've created...

@danvk I think using Node to test React components is the way to go, because they are isomorphic, so they should do the same thing on client and server. Using...

Sorry, been really busy last few hours. Moving the delete outside of the if doesn't change anything in the results. ``` javascript // Transform a file via JSX/Harmony or stubbing....

@danvk, @jxm262 check this out: https://github.com/adjavaherian/mocha-react. I was able to do away with the transpiler in favor of Babel. Also, specs can now do mocking on demand with Mockery. I...

I know, babel and mockery are awesome, but don't seem to be very well known. They work very well together.

@bizmurr, cool I was gonna say it sounds like a jsdom issue, navigator is not really used in our test setup, but might come in handy for some people. I...

I'm trying to do the same thing. In my cam setup, I do something like this. ```cpp #if defined (OV2640_MINI_2MP) || defined (OV2640_CAM) //Check if the camera module type is...