Skip to content

Commit

Permalink
test(backend): temporary switch URL to be fetched
Browse files Browse the repository at this point in the history
  • Loading branch information
KisaragiEffective committed Jul 1, 2024
1 parent 5026021 commit d7f5c2b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/backend/test/e2e/drive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('Drive', () => {

const marker = Math.random().toString();

const url = 'https://raw.githubusercontent.com/misskey-dev/misskey/develop/packages/backend/test/resources/192.jpg';
const url = 'https://raw.githubusercontent.com/KisaragiEffective/misskey/develop/retire-lenna/backend/test/resources/192.jpg';

const catcher = makeStreamCatcher(
alice,
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/test/e2e/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('Note', () => {
});

test('ファイルを添付できる', async () => {
const file = await uploadUrl(alice, 'https://raw.githubusercontent.com/misskey-dev/misskey/develop/packages/backend/test/resources/192.jpg');
const file = await uploadUrl(alice, 'https://raw.githubusercontent.com/KisaragiEffective/misskey/develop/retire-lenna/backend/test/resources/192.jpg');

const res = await api('notes/create', {
fileIds: [file.id],
Expand All @@ -53,7 +53,7 @@ describe('Note', () => {
}, 1000 * 10);

test('他人のファイルで怒られる', async () => {
const file = await uploadUrl(bob, 'https://raw.githubusercontent.com/misskey-dev/misskey/develop/packages/backend/test/resources/192.jpg');
const file = await uploadUrl(bob, 'https://raw.githubusercontent.com/KisaragiEffective/misskey/develop/retire-lenna/backend/test/resources/192.jpg');

const res = await api('notes/create', {
text: 'test',
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/test/e2e/user-notes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('users/notes', () => {

beforeAll(async () => {
alice = await signup({ username: 'alice' });
const jpg = await uploadUrl(alice, 'https://raw.githubusercontent.com/misskey-dev/misskey/develop/packages/backend/test/resources/192.jpg');
const jpg = await uploadUrl(alice, 'https://raw.githubusercontent.com/KisaragiEffective/misskey/develop/retire-lenna/backend/test/resources/192.jpg');
const png = await uploadUrl(alice, 'https://raw.githubusercontent.com/misskey-dev/misskey/develop/packages/backend/test/resources/192.png');
jpgNote = await post(alice, {
fileIds: [jpg.id],
Expand Down

0 comments on commit d7f5c2b

Please sign in to comment.