api: expose user's inbox.optOut for api/v3/members/:memberId #7798 (#7893)

* api: expose user's inbox.optOut for `api/v3/members/:memberId` #7798

* test: fixed chai exist vs exists typos

* _getMembersForItem: fixed typo in api docs
This commit is contained in:
Jaka Kranjc
2016-08-16 05:21:14 +02:00
committed by Blade Barringer
parent 1a409848a8
commit 408d988341
10 changed files with 29 additions and 25 deletions

View File

@@ -32,7 +32,7 @@ describe('shared.ops.addTask', () => {
expect(habit.up).to.equal(true);
expect(habit.down).to.equal(false);
expect(habit.history).to.eql([]);
expect(habit.checklist).to.not.exists;
expect(habit.checklist).to.not.exist;
});
it('adds an habtit when type is invalid', () => {
@@ -53,7 +53,7 @@ describe('shared.ops.addTask', () => {
expect(habit.up).to.equal(true);
expect(habit.down).to.equal(false);
expect(habit.history).to.eql([]);
expect(habit.checklist).to.not.exists;
expect(habit.checklist).to.not.exist;
});
it('adds a daily', () => {
@@ -73,7 +73,7 @@ describe('shared.ops.addTask', () => {
expect(daily.history).to.eql([]);
expect(daily.checklist).to.eql([]);
expect(daily.completed).to.be.false;
expect(daily.up).to.not.exists;
expect(daily.up).to.not.exist;
});
it('adds a todo', () => {
@@ -92,7 +92,7 @@ describe('shared.ops.addTask', () => {
expect(todo.text).to.equal('todo');
expect(todo.checklist).to.eql([]);
expect(todo.completed).to.be.false;
expect(todo.up).to.not.exists;
expect(todo.up).to.not.exist;
});
it('adds a reward', () => {
@@ -110,7 +110,7 @@ describe('shared.ops.addTask', () => {
expect(reward.type).to.equal('reward');
expect(reward.text).to.equal('reward');
expect(reward.value).to.equal(10);
expect(reward.up).to.not.exists;
expect(reward.up).to.not.exist;
});
context('user preferences', () => {