12 lines
306 B
JavaScript
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);
|
|
});
|
|
});
|
|
}); |