update deps and fix
This commit is contained in:
parent
fd696a9621
commit
96abc31bfc
12 changed files with 649 additions and 466 deletions
|
@ -512,14 +512,14 @@ describe('Streaming', () => {
|
|||
assert.strictEqual(fired, false);
|
||||
});
|
||||
|
||||
test('withReplies = falseでフォローしてる人によるリプライが流れてくる', async () => {
|
||||
test('withReplies = falseでフォローしてる人によるリプライが流れない', async () => {
|
||||
const fired = await waitFire(
|
||||
ayano, 'globalTimeline', // ayano:Global
|
||||
() => api('notes/create', { text: 'foo', replyId: kanakoNote.id }, kyoko), // kyoko posts
|
||||
msg => msg.type === 'note' && msg.body.userId === kyoko.id, // wait kyoko
|
||||
);
|
||||
|
||||
assert.strictEqual(fired, true);
|
||||
assert.strictEqual(fired, false);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -14,9 +14,7 @@ import { afterAll, beforeAll, describe, test } from '@jest/globals';
|
|||
import { GlobalModule } from '@/GlobalModule.js';
|
||||
import { LoggerService } from '@/core/LoggerService.js';
|
||||
import { FileInfoService } from '@/core/FileInfoService.js';
|
||||
//import { DI } from '@/di-symbols.js';
|
||||
import { AiService } from '@/core/AiService.js';
|
||||
import { LoggerService } from '@/core/LoggerService.js';
|
||||
import type { TestingModule } from '@nestjs/testing';
|
||||
import type { MockFunctionMetadata } from 'jest-mock';
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ describe('NoteCreateService', () => {
|
|||
describe('is-renote', () => {
|
||||
const base: MiNote = {
|
||||
id: 'some-note-id',
|
||||
createdAt: new Date(2016, 11, 28, 22, 49, 51),
|
||||
replyId: null,
|
||||
reply: null,
|
||||
renoteId: null,
|
||||
|
@ -70,6 +71,7 @@ describe('NoteCreateService', () => {
|
|||
|
||||
const file: MiDriveFile = {
|
||||
id: 'some-file-id',
|
||||
createdAt: new Date(2016, 11, 28, 22, 49, 51),
|
||||
userId: null,
|
||||
user: null,
|
||||
userHost: null,
|
||||
|
|
|
@ -8,6 +8,7 @@ import { MiNote } from '@/models/Note.js';
|
|||
|
||||
const base: MiNote = {
|
||||
id: 'some-note-id',
|
||||
createdAt: new Date(2016, 11, 28, 22, 49, 51),
|
||||
replyId: null,
|
||||
reply: null,
|
||||
renoteId: null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue