mirror of
https://github.com/wassname/talk.git
synced 2026-07-19 11:28:50 +08:00
Resolve linter issues
This commit is contained in:
@@ -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'] },
|
||||
}),
|
||||
])
|
||||
);
|
||||
]));
|
||||
|
||||
[
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user