server/test/db.test.js
2025-03-30 20:05:58 +02:00

12 lines
306 B
JavaScript

import mocha from 'mocha';
import { subscribe } from '../lib/db.js';
const assert = mocha.assert;
describe('lib/db', function () {
describe('#indexOf()', function () {
it('should return -1 when the value is not present', function () {
assert.equal([1, 2, 3].indexOf(4), -1);
});
});
});