Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ElectricMaxxx opened this issue Jul 18, 2013 · 1 comment
Open

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

ElectricMaxxx opened this issue Jul 18, 2013 · 1 comment

Comments

@ElectricMaxxx
Copy link
Owner

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?

@ElectricMaxxx
Copy link
Owner Author

an working sample test is in test/has/attribute.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant