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

subtests are not run before parent's siblings #4

Closed
isaacs opened this issue Nov 25, 2012 · 0 comments
Closed

subtests are not run before parent's siblings #4

isaacs opened this issue Nov 25, 2012 · 0 comments

Comments

@isaacs
Copy link
Contributor

isaacs commented Nov 25, 2012

This is weird:

var test = require('tape');

var childRan = false;

test('parent', function(t) {
  t.test('child', function(t) {
    childRan = true;
    t.pass('child ran');
    t.end();
  });
  t.end();
});

test('uncle', function(t) {
  t.ok(childRan, 'Child should have run before moving on to next top-level test');
  t.end();
});
@ghost ghost closed this as completed in 8e9ee0d Nov 25, 2012
This issue was closed.
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