fix test
This commit is contained in:
parent
9e63703d59
commit
5078c58303
|
@ -6,7 +6,7 @@
|
|||
process.env.NODE_ENV = 'test';
|
||||
|
||||
import * as assert from 'assert';
|
||||
import { api, makeStreamCatcher, post, signup, uploadFile } from '../utils.js';
|
||||
import { api, makeStreamCatcher, post, sendEnvUpdateRequest, signup, uploadFile } from '../utils.js';
|
||||
import type * as misskey from 'misskey-js';
|
||||
|
||||
describe('Drive', () => {
|
||||
|
|
|
@ -779,7 +779,7 @@ describe('ユーザー', () => {
|
|||
});
|
||||
test.each([
|
||||
{ label: '「見つけやすくする」がOFFのユーザーが含まれる', user: () => userNotExplorable },
|
||||
{ label: 'ミュートユーザーが含まれる', user: () => userMutedByAlice },
|
||||
{ label: 'ミュートユーザーが含まれない', user: () => userMutedByAlice, excluded: true },
|
||||
{ label: 'ブロックされているユーザーが含まれる', user: () => userBlockedByAlice },
|
||||
{ label: 'ブロックしてきているユーザーが含まれない', user: () => userBlockingAlice, excluded: true },
|
||||
{ label: '承認制ユーザーが含まれる', user: () => userLocking },
|
||||
|
|
|
@ -129,7 +129,7 @@ describe('FetchInstanceMetadataService', () => {
|
|||
const unlockSpy = jest.spyOn(fetchInstanceMetadataService, 'unlock');
|
||||
|
||||
await fetchInstanceMetadataService.fetchInstanceMetadata({ host: 'example.com' } as any, true);
|
||||
expect(tryLockSpy).toHaveBeenCalledTimes(0);
|
||||
expect(tryLockSpy).toHaveBeenCalledTimes(1);
|
||||
expect(unlockSpy).toHaveBeenCalledTimes(1);
|
||||
expect(federatedInstanceService.fetch).toHaveBeenCalledTimes(0);
|
||||
expect(httpRequestService.getJson).toHaveBeenCalled();
|
||||
|
|
Loading…
Reference in a new issue