2023-05-02 23:43:47 +03:00
|
|
|
const StatsService = require('../../lib/StatsService');
|
2022-04-21 15:10:33 +03:00
|
|
|
const knex = require('knex').default;
|
2023-06-21 11:56:59 +03:00
|
|
|
const assert = require('assert/strict');
|
2022-04-21 15:10:33 +03:00
|
|
|
|
|
|
|
describe('StatsService', function () {
|
|
|
|
it('Exposes a create factory', function () {
|
|
|
|
const service = StatsService.create({knex: knex({client: 'sqlite3', connection: {filename: ':memory:'}})});
|
|
|
|
assert(service instanceof StatsService);
|
|
|
|
});
|
|
|
|
});
|