mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
fbc23a624e
refs https://github.com/TryGhost/Team/issues/2078 This pulls the current Tiers logic into its own package, the persistence part of the work has not been done yet, that will be handled in core, so all bookshelf model specific stuff is kept together.
19 lines
506 B
JavaScript
19 lines
506 B
JavaScript
const assert = require('assert');
|
|
const {
|
|
Tier,
|
|
TiersAPI,
|
|
InMemoryTierRepository
|
|
} = require('../index');
|
|
|
|
describe('index.js', function () {
|
|
it('Exports Tier', function () {
|
|
assert(Tier === require('../lib/Tier'));
|
|
});
|
|
it('Exports TiersAPI', function () {
|
|
assert(TiersAPI === require('../lib/TiersAPI'));
|
|
});
|
|
it('Exports InMemoryTierRepository', function () {
|
|
assert(InMemoryTierRepository === require('../lib/InMemoryTierRepository'));
|
|
});
|
|
});
|