Phil Caithness (3) [Avatar] Offline
#1
Hi,
Great course so far.
Particularly interested in the way you run integration tests on lambda's.
I am not sure why you are wrapping the test's describe() handler with co.
I understand why you are using generators in lambda's, and thus why they need to be wrapped in co - to 'run' the generators iterator.
I also understand why you are wrapping the before() and it() handlers in co in the tests - same reason.
But why use a generator (and thus wrapping it in co) for the describe() handler ?

thanks.
Yan Cui (63) [Avatar] Offline
#2
Hi Phil,

You're right, the describe() handlers don't need to be wrapped by co, I do it out of habit more than anything else.

Cheers,
Phil Caithness (3) [Avatar] Offline
#3
Thanks. Thats good to know, cause I am still trying to solidify my understanding of generators and co smilie