Removed public function in favor of filterForUser transformer

This commit is contained in:
Wyatt Johnson
2016-12-13 16:14:49 -07:00
parent 9bc81f97e5
commit 55bd600d96
3 changed files with 10 additions and 29 deletions
-14
View File
@@ -20,20 +20,6 @@ describe('models.Setting', () => {
});
});
describe('#public()', () => {
it('should have a moderation field defined', () => {
return Setting.public().then(settings => {
expect(settings).to.have.property('moderation').and.to.equal('pre');
});
});
it('should not have the wordlist field defined', () => {
return Setting.public().then(settings => {
expect(settings).to.have.property('wordlist').and.to.have.length(0);
});
});
});
describe('#update()', () => {
it('should update the settings with a passed object', () => {
const mockSettings = {moderation: 'post', infoBoxEnable: true, infoBoxContent: 'yeah'};