X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=test%2Flib%2Fstub-database.js;h=54ea92fd676a6e3885f39a420a05f0ae17ec1e81;hb=c8c6b02b5bd58314dad61cc17d0cfd6e4cb764f9;hp=cfb2801630f1765d024228efb1860541a6d21735;hpb=008717082248dbb9caff2546512932594d7ef62f;p=squeep-test-helper diff --git a/test/lib/stub-database.js b/test/lib/stub-database.js index cfb2801..54ea92f 100644 --- a/test/lib/stub-database.js +++ b/test/lib/stub-database.js @@ -1,8 +1,8 @@ -/* eslint-env mocha */ /* eslint-disable security/detect-object-injection */ 'use strict'; -const assert = require('assert'); +const assert = require('node:assert'); +const sinon = require('sinon'); const StubDatabase = require('../../lib/stub-database'); describe('StubDatabase', function () { @@ -16,7 +16,7 @@ describe('StubDatabase', function () { describe('Base', function () { beforeEach(function () { - db = new StubDatabase(); + db = new StubDatabase(sinon); db._reset(); }); it('covers implementation', invokeAllImplementation); @@ -24,6 +24,9 @@ describe('StubDatabase', function () { describe('Extended', function () { class DB extends StubDatabase { + constructor() { + super(sinon); + } get _stubFns() { return [ ...super._stubFns,