Skip to content

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

Open

Description

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

Activity

  1. rbabayoff commented on Nov 14, 2014

    @rbabayoff
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions