-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c04c222
commit 6036132
Showing
1 changed file
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -195,9 +195,11 @@ describe('Emoji', () => { | |
assert(noteInB.emojis != null); | ||
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; | ||
|
||
// @ts-ignore | ||
Check failure on line 199 in packages/backend/test-federation/test/emoji.test.ts GitHub Actions / lint (backend)
|
||
const emojiId = (await bAdmin.client.request('admin/emoji/list-remote')).find( x => x.name === emoji.name).id; | ||
const res = await bAdmin.client.request('admin/emoji/copy',{ emojiId: emojiId }); | ||
console.log(res); | ||
console.log(JSON.stringify(res)); | ||
}); | ||
test('コピー拒否の絵文字をコピーできない(steal)', async () => { | ||
const emoji = await addCustomEmoji('a.test', { | ||
|
@@ -221,7 +223,7 @@ describe('Emoji', () => { | |
assert(emoji.name in noteInB.emojis); | ||
strictEqual(noteInB.emojis[emoji.name], emoji.url); | ||
const res = await bAdmin.client.request('admin/emoji/steal',{ name: emoji.name, host: 'a.test' }); | ||
console.log(res); | ||
console.log(JSON.stringify(res)); | ||
}); | ||
|
||
test('コピー許可の絵文字をコピーできる', async () => { | ||
|
@@ -245,9 +247,10 @@ describe('Emoji', () => { | |
assert(noteInB.emojis != null); | ||
assert(emoji.name in noteInB.emojis); | ||
strictEqual(noteInB.emojis[emoji.name], emoji.url); | ||
// @ts-ignore | ||
Check failure on line 250 in packages/backend/test-federation/test/emoji.test.ts GitHub Actions / lint (backend)
|
||
const emojiId = (await bAdmin.client.request('admin/emoji/list-remote')).find( x => x.name === emoji.name).id; | ||
const res = await bAdmin.client.request('admin/emoji/copy',{ emojiId: emojiId }); | ||
console.log(res); | ||
console.log(JSON.stringify(res)); | ||
}); | ||
test('条件付きの絵文字をコピーできない', async () => { | ||
const emoji = await addCustomEmoji('a.test', { | ||
|
@@ -270,8 +273,9 @@ describe('Emoji', () => { | |
assert(noteInB.emojis != null); | ||
assert(emoji.name in noteInB.emojis); | ||
strictEqual(noteInB.emojis[emoji.name], emoji.url); | ||
// @ts-ignore | ||
Check failure on line 276 in packages/backend/test-federation/test/emoji.test.ts GitHub Actions / lint (backend)
|
||
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 }); | ||
console.log(res); | ||
console.log(JSON.stringify(res)); | ||
}); | ||
}); |