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

NEW: Create helper to assist with checking accepted/reject parameter types #49

Closed
notmessenger opened this issue Jan 22, 2015 · 1 comment
Assignees

Comments

@notmessenger
Copy link
Collaborator

Instead of having to copy/paste over and over things such as

// Function
assertionThrown = false;

try {
    something( function(){} );
} catch( error ) {
    assertionThrown = true;
}

ok( assertionThrown, 'Parameter was a Function' );

for each type wanting to check

sometimes specific values need to be set or a property on an object to get past some other assertion logic later in the code under test so needs to be definable beyond just a type.

@notmessenger
Copy link
Collaborator Author

Only implementing support for single-argument checking. #58 has been created to track development of support for multiple arguments.

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

No branches or pull requests

1 participant