First commit

This commit is contained in:
2025-10-08 11:12:59 -04:00
commit b0605a28a9
820 changed files with 100317 additions and 0 deletions

24
node_modules/@ldapjs/protocol/index.test.js generated vendored Normal file
View File

@ -0,0 +1,24 @@
'use strict'
const tap = require('tap')
const protocol = require('./')
tap.test('exports expected object', async t => {
t.equal(Object.isFrozen(protocol), true);
['core', 'operations', 'resultCodes', 'search'].forEach(component => {
t.ok(protocol[component])
t.equal(Object.isFrozen(protocol[component]), true)
})
})
tap.test('resultCodeToName', t => {
t.test('returns undefined for not found', async t => {
t.equal(protocol.resultCodeToName(-1), undefined)
})
t.test('returns correct name', async t => {
t.equal(protocol.resultCodeToName(32), 'NO_SUCH_OBJECT')
})
t.end()
})