2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-01-30 22:03:35 +00:00
nushell/crates/nu-cli/tests/commands/keybindings_list.rs
Devyn Cairns 53fbf62493
Fix keybindings list being empty by default ()
# Description

Made a mistake when fixing this for IR. The default behavior with no
options set is to list everything. Restored that.

This should go in the 0.96.1 patch release.

# Tests + Formatting
Added regression test.
2024-07-26 16:03:05 +08:00

7 lines
146 B
Rust

use nu_test_support::nu;
#[test]
fn not_empty() {
let result = nu!("keybindings list | is-not-empty");
assert_eq!(result.out, "true");
}