Resolve linter issues

This commit is contained in:
Chi Vinh Le
2018-06-05 04:28:54 +02:00
parent d9a1d739dc
commit ccff6ed63b
148 changed files with 1171 additions and 265 deletions
+3 -6
View File
@@ -195,8 +195,7 @@ describe('graph.mutations.createComment', () => {
AssetModel.create({
id: '123',
settings: { disableCommenting: disabled },
})
);
}));
it(
error ? 'does not create the comment' : 'creates the comment',
@@ -234,8 +233,7 @@ describe('graph.mutations.createComment', () => {
].forEach(({ moderation, status }) => {
describe(`moderation=${moderation}`, () => {
beforeEach(() =>
AssetModel.create({ id: '123', settings: { moderation } })
);
AssetModel.create({ id: '123', settings: { moderation } }));
it(`creates comment with status=${status}`, () => {
const context = new Context({ user: new UserModel() });
@@ -263,8 +261,7 @@ describe('graph.mutations.createComment', () => {
SettingsService.update({
wordlist: { banned: ['WORST'], suspect: ['EH'] },
}),
])
);
]));
[
{