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

moduleFor & friends: Support nested modules as provided by QUnit.module #232

Closed
jeremy-w opened this issue Jul 5, 2016 · 1 comment
Closed

Comments

@jeremy-w
Copy link

jeremy-w commented Jul 5, 2016

QUnit.module supports nested modules. Usage looks like:

QUnit.module("top-level module", function() {
  QUnit.test("a test in the top-level module", function(assert) {
    assert.ok(true, "yup");
  });

  QUnit.module("nested module", function() {
    QUnit.test("a test in the nested module", function(assert) {
      assert.ok(true, "yup");
    });
  });
});

I figured moduleFor might support this already, but it does not. When there's repeated setup context related to a scenario, it would be convenient to be able to nest modules to express this.

@rwjblue
Copy link
Member

rwjblue commented Jul 5, 2016

Please review and chime in on https:/rwjblue/ember-qunit/issues/208.

@rwjblue rwjblue closed this as completed Jul 5, 2016
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

2 participants