wangzhibo
2026-05-09 53418655c061ac26f66058253f39200aced1ab1d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict'
 
const tap = require('tap')
const RECOGNIZED_OIDS = require('./recognized-oids')
 
tap.test('lookupName returns correct name', async t => {
  const name = RECOGNIZED_OIDS.lookupName('1.3.6.1.4.1.4203.1.11.1')
  t.equal(name, 'PASSWORD_MODIFY')
})
 
tap.test('lookupOID returns correct OID', async t => {
  const name = RECOGNIZED_OIDS.lookupOID('PASSWORD_MODIFY')
  t.equal(name, '1.3.6.1.4.1.4203.1.11.1')
})