mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Added test for isComplimentarySubscription
refs https://github.com/TryGhost/Members/commit/d7d7806d
This commit is contained in:
parent
d7d7806dcf
commit
a576326d0e
1 changed files with 10 additions and 0 deletions
10
ghost/members-api/test/unit/lib/repositories/member.test.js
Normal file
10
ghost/members-api/test/unit/lib/repositories/member.test.js
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
const MemberRepository = require('../../../../lib/repositories/member');
|
||||||
|
|
||||||
|
describe('MemberRepository', function () {
|
||||||
|
describe('#isComplimentarySubscriptio', function () {
|
||||||
|
it('Does not error when subscription.plan is null', function () {
|
||||||
|
const repo = new MemberRepository({});
|
||||||
|
repo.isComplimentarySubscription({});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
Loading…
Add table
Reference in a new issue