Use metric by default

This commit is contained in:
Jack Kingsman
2026-03-19 17:56:04 -07:00
parent 2337d7b592
commit dbe2915635
4 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -11,8 +11,8 @@ describe('distanceUnits utilities', () => {
localStorage.clear();
});
it('defaults to imperial when unset', () => {
expect(getSavedDistanceUnit()).toBe('imperial');
it('defaults to metric when unset', () => {
expect(getSavedDistanceUnit()).toBe('metric');
});
it('returns the stored unit when valid', () => {
@@ -20,9 +20,9 @@ describe('distanceUnits utilities', () => {
expect(getSavedDistanceUnit()).toBe('metric');
});
it('falls back to imperial for invalid stored values', () => {
it('falls back to metric for invalid stored values', () => {
localStorage.setItem(DISTANCE_UNIT_KEY, 'parsecs');
expect(getSavedDistanceUnit()).toBe('imperial');
expect(getSavedDistanceUnit()).toBe('metric');
});
it('stores the selected distance unit', () => {
+2 -2
View File
@@ -536,12 +536,12 @@ describe('SettingsModal', () => {
expect(localStorage.getItem(LAST_VIEWED_CONVERSATION_KEY)).toBeNull();
});
it('defaults distance units to imperial and stores local changes', () => {
it('defaults distance units to metric and stores local changes', () => {
renderModal();
openLocalSection();
const select = screen.getByLabelText('Distance Units');
expect(select).toHaveValue('imperial');
expect(select).toHaveValue('metric');
fireEvent.change(select, { target: { value: 'smoots' } });