mirror of
https://github.com/stablyai/orca.git
synced 2026-11-03 10:37:35 +00:00
test: remove 338 low-value cases and 28 suites (#34234)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
This commit is contained in:
@@ -26,7 +26,7 @@ vi.mock('./project-error-classification', () => ({
|
||||
rateLimitedError: vi.fn()
|
||||
}))
|
||||
|
||||
import { listAssignableUsersBySlug, listLabelsBySlug } from './repository-field-options'
|
||||
import { listLabelsBySlug } from './repository-field-options'
|
||||
|
||||
describe('repository field options', () => {
|
||||
beforeEach(() => {
|
||||
@@ -49,25 +49,4 @@ describe('repository field options', () => {
|
||||
)
|
||||
expect(releaseMock).toHaveBeenCalledOnce()
|
||||
})
|
||||
|
||||
it('merges seed assignees after paginated provider results', async () => {
|
||||
ghExecFileAsyncMock.mockResolvedValue({
|
||||
stdout: '{"login":"octo","name":null,"avatarUrl":"octo.png"}\n',
|
||||
stderr: ''
|
||||
})
|
||||
|
||||
const result = await listAssignableUsersBySlug({
|
||||
owner: 'acme',
|
||||
repo: 'widgets',
|
||||
seedLogins: ['octo', 'hubot']
|
||||
})
|
||||
|
||||
expect(result).toEqual({
|
||||
ok: true,
|
||||
users: [
|
||||
{ login: 'octo', name: null, avatarUrl: 'octo.png' },
|
||||
{ login: 'hubot', name: null, avatarUrl: '' }
|
||||
]
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user