Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
penginn-net committed Jan 8, 2025
1 parent ddc01cd commit c04c222
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/backend/test-federation/test/emoji.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ describe('Emoji', () => {
assert(emoji.name in noteInB.emojis);
strictEqual(noteInB.emojis[emoji.name], emoji.url);
const emojiId = (await bAdmin.client.request('admin/emoji/list-remote')).find( x => x.name === emoji.name).id;
const res = bAdmin.client.request('admin/emoji/copy',{ emojiId: emojiId });
const res = await bAdmin.client.request('admin/emoji/copy',{ emojiId: emojiId });

Check failure on line 199 in packages/backend/test-federation/test/emoji.test.ts

View workflow job for this annotation

GitHub Actions / lint (backend)

A space is required after ','
console.log(res);
});
test('コピー拒否の絵文字をコピーできない(steal)', async () => {
Expand All @@ -220,7 +220,7 @@ describe('Emoji', () => {
assert(noteInB.emojis != null);
assert(emoji.name in noteInB.emojis);
strictEqual(noteInB.emojis[emoji.name], emoji.url);
const res = bAdmin.client.request('admin/emoji/steal',{ name: emoji.name, host: 'a.test' });
const res = await bAdmin.client.request('admin/emoji/steal',{ name: emoji.name, host: 'a.test' });

Check failure on line 223 in packages/backend/test-federation/test/emoji.test.ts

View workflow job for this annotation

GitHub Actions / lint (backend)

A space is required after ','
console.log(res);
});

Expand All @@ -246,7 +246,7 @@ describe('Emoji', () => {
assert(emoji.name in noteInB.emojis);
strictEqual(noteInB.emojis[emoji.name], emoji.url);
const emojiId = (await bAdmin.client.request('admin/emoji/list-remote')).find( x => x.name === emoji.name).id;
const res = bAdmin.client.request('admin/emoji/copy',{ emojiId: emojiId });
const res = await bAdmin.client.request('admin/emoji/copy',{ emojiId: emojiId });

Check failure on line 249 in packages/backend/test-federation/test/emoji.test.ts

View workflow job for this annotation

GitHub Actions / lint (backend)

A space is required after ','
console.log(res);
});
test('条件付きの絵文字をコピーできない', async () => {
Expand Down

0 comments on commit c04c222

Please sign in to comment.