Powerlevel9k / powerlevel9k

Powerlevel9k was a tool for building a beautiful and highly functional CLI, customized for you. P9k had a substantial impact on CLI UX, and its legacy is now continued by P10k.
https://github.com/romkatv/powerlevel10k
MIT License
13.46k stars 948 forks source link

[Bug] Test do not properly clean up after them #1263

Open Syphdias opened 5 years ago

Syphdias commented 5 years ago

When writing tests for *_BOLD I noticed that there are artifacts left behind after every test. Like the arrays __P9K_ICONS and __P9K_DATA.

I tried to circumvent this by calling emulate -L zsh in setUp which doesn't seem to do anything so I did an unset -m '__P9K_*' in tearDown.

There might be more variables like this and I'm not sure if other test are affected but I think it should at least be put into the function prompt_powerlevel9k_teardown.