Files
simple-mail-cleaner/backend/node_modules/fastify/test/noop-set.test.js
2026-01-22 15:49:12 +01:00

20 lines
379 B
JavaScript

'use strict'
const tap = require('tap')
const noopSet = require('../lib/noop-set')
tap.test('does a lot of nothing', async t => {
const aSet = noopSet()
t.type(aSet, 'object')
const item = {}
aSet.add(item)
aSet.add({ another: 'item' })
aSet.delete(item)
t.equal(aSet.has(item), true)
for (const i of aSet) {
t.fail('should not have any items', i)
}
})