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

One line format. #21

Open
jamestalmage opened this issue Nov 6, 2015 · 1 comment
Open

One line format. #21

jamestalmage opened this issue Nov 6, 2015 · 1 comment

Comments

@jamestalmage
Copy link
Contributor

assert.ok(two == three) => #ok(2 === 3) => #ok(false)
@sindresorhus
Copy link

Not sure about this. It's not that readable. It took me a bit until I got it.

Can you provide an example of how it would look with a more advanced assertion like:

const a = /foo/;
const b = 'bar';
const c = 'baz';
t.ok(a.test(b) || b === c);

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

2 participants