Skip to content
#

assertion

Here are 63 public repositories matching this topic...

christopheraue
christopheraue commented Feb 2, 2020

Running the following test file should report a failure but does not:

// error.js
const {test} = require('zora')

test('error message with string', t => {
  t.throws(() => { throw new Error('message') }, 'another message')
})

Output:

$ node error.js 
TAP version 13
# error message with string
ok 1 - another message
1..1

# ok
# success: 1
# skipped: 0
# failure:
ragboyjr
ragboyjr commented Aug 3, 2018
  • Kernel doesn't mean anything on it's own, so you typically only import Krak\Validation and then use Validation\Kernel, that's super annoying when using an IDE. It should be something like ValidationManager, ValidationContainer, ValidationKernel, etc etc
  • Krak\Validation\Validators doesn't make me happy, I typically rename to Krak\Validation\Assert, so we might as well put the funcs there

Improve this page

Add a description, image, and links to the assertion topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the assertion topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.