NeahOpti/node_modules/thread-stream/test/indexes.test.js
2025-04-22 12:49:37 +02:00

12 lines
253 B
JavaScript

'use strict'
const { test } = require('tap')
const indexes = require('../lib/indexes')
for (const index of Object.keys(indexes)) {
test(`${index} is lock free`, function (t) {
t.equal(Atomics.isLockFree(indexes[index]), true)
t.end()
})
}