summaryrefslogtreecommitdiff
path: root/packages/backend/test/unit/misc
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2024-10-12 15:51:45 -0400
committerHazelnoot <acomputerdog@gmail.com>2024-10-15 14:16:46 -0400
commitfa687ecb3387799c2d95af526b48ffe91616659b (patch)
tree95fa006b207ed99fdfabcf4063ebd1fd9046102e /packages/backend/test/unit/misc
parentfix test failures (diff)
downloadsharkey-fa687ecb3387799c2d95af526b48ffe91616659b.tar.gz
sharkey-fa687ecb3387799c2d95af526b48ffe91616659b.tar.bz2
sharkey-fa687ecb3387799c2d95af526b48ffe91616659b.zip
fix is-renote tests
Diffstat (limited to 'packages/backend/test/unit/misc')
-rw-r--r--packages/backend/test/unit/misc/is-renote.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/backend/test/unit/misc/is-renote.ts b/packages/backend/test/unit/misc/is-renote.ts
index 4da00bcf25..1baa995f59 100644
--- a/packages/backend/test/unit/misc/is-renote.ts
+++ b/packages/backend/test/unit/misc/is-renote.ts
@@ -89,20 +89,19 @@ describe('misc:is-renote', () => {
describe('isPureRenote', () => {
it('should return true when note is pure renote', () => {
- const note = new MiNote({ renoteId: 'abc123' });
+ const note = new MiNote({ renoteId: 'abc123', fileIds: [] });
const result = isPureRenote(note);
expect(result).toBeTruthy();
});
it('should return false when note is quote', () => {
- const note = new MiNote({ renoteId: 'abc123', text: 'text' });
+ const note = new MiNote({ renoteId: 'abc123', text: 'text', fileIds: [] });
const result = isPureRenote(note);
expect(result).toBeFalsy();
-
});
it('should return false when note is not renote', () => {
- const note = new MiNote({ renoteId: null });
+ const note = new MiNote({ renoteId: null, fileIds: [] });
const result = isPureRenote(note);
expect(result).toBeFalsy();
});