Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only the first describe block is nested under the parent one #25

Open
ghost opened this issue Nov 13, 2014 · 1 comment
Open

Only the first describe block is nested under the parent one #25

ghost opened this issue Nov 13, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 13, 2014

Only the first describe block is nested under the parent one. The other nested blocks are added to the top level.

Example:

describe('Package', function () {
  beforeEach(function () {
    console.log('beforeEach')
  });

  describe('method1', function () {
    it('does something', function () {
      console.log('method1')
    });
  });

  describe('method2', function () {
    it('does something', function () {
      console.log('method2')
    });
  });
});

It produces

  • method2
  • Package
    • method1

But I expect

  • Package
    • method1
    • method2
@rbabayoff
Copy link
Member

Same here. Don't use nested blocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant