Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
allouis committed Dec 18, 2024
1 parent 8ed8885 commit c240166
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/helpers/activitypub/actor.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
type RequestContext,
} from '@fedify/fedify';

import assert from 'node:assert';
import type { Logger } from '@logtape/logtape';
import type { ContextData } from '../../app';
import {
Expand Down Expand Up @@ -312,10 +311,10 @@ describe('updateSiteActor', () => {

const result = await updateSiteActor(apCtx, getSiteSettings, host);

assert(result === false);
expect(result).toBe(false);
});

it('Should update the site actor if the site settings have changed', async () => {
it('should update the site actor if the site settings have changed', async () => {
const db = {
get: vi.fn().mockResolvedValue({
id: 'https://example.com/user/1',
Expand Down Expand Up @@ -352,6 +351,6 @@ describe('updateSiteActor', () => {

const result = await updateSiteActor(apCtx, getSiteSettings, host);

assert(result === true);
expect(result).toBe(true);
});
});

0 comments on commit c240166

Please sign in to comment.