Bug Tracker

Opened 10 years ago

Closed 10 years ago

#5620 closed enhancement (invalid)

beforeModule function for QUnit

Reported by: eeroan Owned by: joern
Priority: trivial Milestone: 1.4
Component: qunit Version: 1.4a1
Keywords: Cc:
Blocked by: Blocking:

Description

It would be nice to say like this:

module('with empty form', { beforeModule: clearForm });

But there is no way to tell what to do before certain module.

in qunit.js on line 56 (declaration of module function) this could be added:

if(testEnvironment && testEnvironment.beforeModule) {

testEnvironment.beforeModule(name);

}

Change History (3)

comment:1 Changed 10 years ago by DumpsterDoggy

I might not be understanding the full intent, but isn't that what setup is for?

comment:2 Changed 10 years ago by eeroan

setup is called before every test. There are things that are required to do only once before a certain module.

comment:3 Changed 10 years ago by john

Resolution: invalid
Status: newclosed

We're moving QUnit-related bugs off to the new QUnit issue tracker: http://github.com/jquery/qunit/issues

Please re-post the issue there.

Note: See TracTickets for help on using tickets.