Be clearer about reality of location inclusion. Closes #53

This commit is contained in:
Jack Kingsman
2026-03-12 10:00:00 -07:00
parent fb535298be
commit 9e8cf56b31
10 changed files with 35 additions and 47 deletions
+3 -3
View File
@@ -32,7 +32,7 @@ const baseConfig: RadioConfig = {
},
path_hash_mode: 0,
path_hash_mode_supported: false,
advert_location_source: 'saved_coords',
advert_location_source: 'current',
};
const baseHealth: HealthStatus = {
@@ -209,13 +209,13 @@ describe('SettingsModal', () => {
openRadioSection();
fireEvent.change(screen.getByLabelText('Advert Location Source'), {
target: { value: 'node_gps' },
target: { value: 'off' },
});
fireEvent.click(screen.getByRole('button', { name: 'Save' }));
await waitFor(() => {
expect(onSave).toHaveBeenCalledWith(
expect.objectContaining({ advert_location_source: 'node_gps' })
expect.objectContaining({ advert_location_source: 'off' })
);
});
});