mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-17 16:50:53 +00:00
tests: fix proxy setting test
This commit is contained in:
parent
ac6d43af8c
commit
97515c4d05
1 changed files with 1 additions and 15 deletions
|
|
@ -370,18 +370,11 @@ describe('ProxySettingsForm', () => {
|
||||||
|
|
||||||
// ── ProxySettingsOptions field routing ─────────────────────────────────────
|
// ── ProxySettingsOptions field routing ─────────────────────────────────────
|
||||||
describe('ProxySettingsOptions field routing', () => {
|
describe('ProxySettingsOptions field routing', () => {
|
||||||
it('calls getInputProps for main settings on initial render', () => {
|
it('binds main settings on initial render', () => {
|
||||||
render(<ProxySettingsForm active={true} />);
|
render(<ProxySettingsForm active={true} />);
|
||||||
expect(formMock.getInputProps).toHaveBeenCalledWith('buffering_timeout');
|
expect(formMock.getInputProps).toHaveBeenCalledWith('buffering_timeout');
|
||||||
expect(formMock.getInputProps).toHaveBeenCalledWith('buffering_speed');
|
expect(formMock.getInputProps).toHaveBeenCalledWith('buffering_speed');
|
||||||
expect(formMock.getInputProps).toHaveBeenCalledWith('redis_url');
|
expect(formMock.getInputProps).toHaveBeenCalledWith('redis_url');
|
||||||
expect(formMock.getInputProps).not.toHaveBeenCalledWith(
|
|
||||||
'channel_client_wait_period'
|
|
||||||
);
|
|
||||||
expect(formMock.getInputProps).not.toHaveBeenCalledWith(
|
|
||||||
'channel_init_grace_period'
|
|
||||||
);
|
|
||||||
expect(formMock.getInputProps).not.toHaveBeenCalledWith('redis_chunk_ttl');
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('hides advanced settings until expanded', () => {
|
it('hides advanced settings until expanded', () => {
|
||||||
|
|
@ -409,13 +402,6 @@ describe('ProxySettingsForm', () => {
|
||||||
screen.getByTestId('number-input-Channel Initialization Timeout')
|
screen.getByTestId('number-input-Channel Initialization Timeout')
|
||||||
).toBeInTheDocument();
|
).toBeInTheDocument();
|
||||||
expect(screen.getByTestId('number-input-Buffer Chunk TTL')).toBeInTheDocument();
|
expect(screen.getByTestId('number-input-Buffer Chunk TTL')).toBeInTheDocument();
|
||||||
expect(formMock.getInputProps).toHaveBeenCalledWith(
|
|
||||||
'channel_client_wait_period'
|
|
||||||
);
|
|
||||||
expect(formMock.getInputProps).toHaveBeenCalledWith(
|
|
||||||
'channel_init_grace_period'
|
|
||||||
);
|
|
||||||
expect(formMock.getInputProps).toHaveBeenCalledWith('redis_chunk_ttl');
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue