Ghost/ghost/stats-service/test/lib/stats.test.js

11 lines
401 B
JavaScript
Raw Normal View History

const StatsService = require('../../lib/StatsService');
const knex = require('knex').default;
const assert = require('assert/strict');
describe('StatsService', function () {
it('Exposes a create factory', function () {
const service = StatsService.create({knex: knex({client: 'sqlite3', connection: {filename: ':memory:'}})});
assert(service instanceof StatsService);
});
});