mhevery/jasmine-node — Issue #88: nested describe produces "it undefined" output
Author: functioncallback
Created: 2011-11-13 23:24:39+00:00
State: open

Running the following spec

describe('root', function () {

describe('nested', function () {

it('nested statement', function () {
expect(1).toBeTruthy();
});

});

it('root statement', function () {
expect(1).toBeTruthy();
});

});

Produces the following output

Started
..

Spec root nested
it nested statement
Spec root
it undefined
it root statement
Finished in 0.002 seconds
2 tests, 2 assertions, 0 failures

Which means it's counting the correct number of specs (2) but it's producing 3 it statements. It seems like the second one "it undefined" is being generated due to the nested describe.

Can someone try to reproduce it?

Thanks
-w