Mixin: base

base

Methods

func(name) → {base.func}

Creates an injectable function.

Parameters:
Name Type Description
name string

Name of injectable

See:
Returns:
Type
base.func

module(name, deps) → {base.module}

Stubs a module, or bootstraps an existing module.

Parameters:
Name Type Argument Description
name string

Module name to bootstrap/stub.

deps Array.<String> <optional>

Any dependencies of this module.

See:
Returns:
Type
base.module

object(name, base) → {base.object}

Creates an injectable object.

Parameters:
Name Type Argument Description
name string

Name of injectable

base Object <optional>

If supplied, will inject this object instead. If {@link http://sinonjs.org Sinon.JS) is present, the object's functions will be spied upon.

See:
Returns:
Type
base.object