1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-24 21:57:41 +00:00

style(directory): Add comments for test settings (#2538)

Have added some comments to explain the settings we are using in some
tests.
This commit is contained in:
Thomas O'Donnell 2021-04-02 06:18:40 +02:00 committed by GitHub
parent 7ef3caf542
commit 7779ed6075
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -683,6 +683,8 @@ mod tests {
#[test] #[test]
fn root_directory() { fn root_directory() {
// Note: We have disable the read_only settings here due to false positives when running
// the tests on Windows as a non-admin.
let actual = ModuleRenderer::new("directory") let actual = ModuleRenderer::new("directory")
.config(toml::toml! { .config(toml::toml! {
[directory] [directory]
@ -1461,6 +1463,8 @@ mod tests {
Color::Cyan.bold().paint("C:/Windows/System32") Color::Cyan.bold().paint("C:/Windows/System32")
)); ));
// Note: We have disable the read_only settings here due to false positives when running
// the tests on Windows as a non-admin.
let actual = ModuleRenderer::new("directory") let actual = ModuleRenderer::new("directory")
.config(toml::toml! { .config(toml::toml! {
[directory] [directory]