Mixin: module

base. module

Mixes In

Methods

withDep(dep) → {base.module}

Adds dependencies to the current module. Potentially useful if you have a dependency chain A -> B -> C and you wish to stub B but not A or C.

Parameters:
Name Type Argument Description
dep string <repeatable>

Module dependency

See:
Returns:
Type
base.module

withDeps(arr) → {base.module}

Like withDep, but accepts an array instead.

Parameters:
Name Type Description
arr Array.<String>

Array of module dependencies

See:
Returns:
Type
base.module