1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-28 15:56:28 +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]
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")
.config(toml::toml! {
[directory]
@ -1461,6 +1463,8 @@ mod tests {
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")
.config(toml::toml! {
[directory]