devOnlyTest
Defines a test that runs only in development mode.
dev.devOnlyTest(...)
Parameters
- waits
{Number}
:an optional number of async waits
- name
{String}
:the String identifier for the test in the test module
- fn
{function}
:the function body of the test.
The parameter list above assumes that
test
on the global object is a QUnit test function. WithdevOnlyTest
, the global test function will be run with the supplied parameters when the system environment is either unknown or not one of the production tests. This is to help facilitate tests that rely on, e.g., canDev behavior that only exists in development builds.
dev.devOnlyTest("it works", function() {
QUnit.ok(true, "it works!");
});