mirror of
https://github.com/ClementTsang/bottom
synced 2025-02-16 13:18:28 +00:00
Feature gate test_default_battery_movement
test_default_battery_movement() is now feature gated on the battery feature. fixes #581 Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
parent
7e9e18faac
commit
9acfacb5a5
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,9 @@
|
|||
//! Mocks layout management, so we can check if we broke anything.
|
||||
|
||||
use bottom::app::layout_manager::{BottomLayout, BottomWidgetType};
|
||||
use bottom::constants::{DEFAULT_BATTERY_LAYOUT, DEFAULT_LAYOUT, DEFAULT_WIDGET_ID};
|
||||
#[cfg(feature = "battery")]
|
||||
use bottom::constants::DEFAULT_BATTERY_LAYOUT;
|
||||
use bottom::constants::{DEFAULT_LAYOUT, DEFAULT_WIDGET_ID};
|
||||
use bottom::options::{layout_options::Row, Config};
|
||||
use bottom::utils::error;
|
||||
|
||||
|
@ -126,6 +128,7 @@ fn test_default_movement() {
|
|||
);
|
||||
}
|
||||
|
||||
#[cfg(feature = "battery")]
|
||||
#[test]
|
||||
/// Tests battery movement in the default setup.
|
||||
fn test_default_battery_movement() {
|
||||
|
|
Loading…
Add table
Reference in a new issue