Skip to content

Make has() or is() global when assert is loaded #15

@ElectricMaxxx

Description

@ElectricMaxxx

The problem ist this:

define(['assert','has'],function(assert,has){
// do all tests
...
  assert.that(actual,has.class());
});

it works that way, but...

it is very uncool, that the user has to load has() (or is()) extra.
Even if i load both files as dependecies for assert it doesn`t work.

I need a mehtod that delivers both functions/objects in an global (or even in the scope of the test) way.

Any Ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions