generated from Seekra/repository-template
style: ensure newlines at the end of each file
This commit is contained in:
@@ -523,4 +523,4 @@ test.for([
|
||||
({ settings: veryNestedSettingsList, path: ['1b', '2b', '3b', '4ba', '5b', '6b', '7a'], expected: undefined })
|
||||
])('returns $expected', ({ settings, path, expected }) => {
|
||||
expect(getSettingRecursively(path, settings)).toStrictEqual(expected);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -60,4 +60,4 @@ describe('settingsPage', () => {
|
||||
expect(getSettingsPagePathSegments(path)).toStrictEqual(expected);
|
||||
});
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -810,4 +810,4 @@ describe('settingsValidator', () => {
|
||||
expect(() => assertString(value)).throws(Error);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -39,4 +39,4 @@ export const getSettingRecursively = function getSettingRecursively (sectionPath
|
||||
};
|
||||
};
|
||||
return oneSettingsLevel(sectionPath, { content: settings });
|
||||
};
|
||||
};
|
||||
|
||||
@@ -28,4 +28,4 @@ export const getSettingsPagePathSegments = function getSettingsPagePathSegments
|
||||
(segment) => segment.replace(/[^a-zA-Z0-9-]/g, '')
|
||||
)
|
||||
.filter(Boolean);
|
||||
};
|
||||
};
|
||||
|
||||
@@ -126,4 +126,4 @@ export function validateSettingsConfig(raw) {
|
||||
raw.contents.forEach((entry, i) =>
|
||||
validateFirstLevelSection(entry, `contents[${i}]`)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user