mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 13:52:10 +03:00
77819d261a
The functionality hasn't changed this has just moved the code and updated the tests to provide better coverage
11 lines
387 B
JavaScript
11 lines
387 B
JavaScript
const StatsService = require('../../lib/stats');
|
|
const knex = require('knex').default;
|
|
const assert = require('assert');
|
|
|
|
describe('StatsService', function () {
|
|
it('Exposes a create factory', function () {
|
|
const service = StatsService.create({knex: knex({client: 'sqlite3', connection: {filename: ':memory:'}})});
|
|
assert(service instanceof StatsService);
|
|
});
|
|
});
|