mirror of
https://github.com/bcomnes/deploy-to-neocities.git
synced 2026-01-23 17:41:13 +00:00
commit node_modules
This commit is contained in:
27
node_modules/nanoassert/test.js
generated
vendored
Normal file
27
node_modules/nanoassert/test.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
var assert = require('.')
|
||||
var test = require('tape')
|
||||
|
||||
test('test', function (t) {
|
||||
try {
|
||||
assert(true === true) // test that it doesn't throw
|
||||
t.pass('does not throw on truthy')
|
||||
} catch (e) {
|
||||
t.fail()
|
||||
}
|
||||
|
||||
t.throws(assert.bind(null, false), 'throws on falsy')
|
||||
|
||||
try {
|
||||
assert(false)
|
||||
} catch (e) {
|
||||
t.equal(e.message, '', 'default message')
|
||||
}
|
||||
|
||||
try {
|
||||
assert(false, 'hello world')
|
||||
} catch (e) {
|
||||
t.equal(e.message, 'hello world', 'custom message')
|
||||
}
|
||||
|
||||
t.end()
|
||||
})
|
||||
Reference in New Issue
Block a user