Files
FrenoCorp/node_modules/level-errors/test.js
Michael Freno 7c684a42cc FRE-600: Fix code review blockers
- Consolidated duplicate UndoManagers to single instance
- Fixed connection promise to only resolve on 'connected' status
- Fixed WebSocketProvider import (WebsocketProvider)
- Added proper doc.destroy() cleanup
- Renamed isPresenceInitialized property to avoid conflict

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-25 00:08:01 -04:00

21 lines
473 B
JavaScript

var test = require('tape')
var errors = require('./')
test('all errors are instances of LevelUPError', function (t) {
var LevelUPError = errors.LevelUPError
var keys = Object.keys(errors)
keys.forEach(function (key) {
t.ok(new errors[key]() instanceof LevelUPError)
})
t.end()
})
test('NotFoundError has special properties', function (t) {
var error = new errors.NotFoundError()
t.equal(error.notFound, true)
t.equal(error.status, 404)
t.end()
})