add history session command (#6587)

This commit is contained in:
Darren Schroeder
2022-09-19 14:30:04 -05:00
committed by GitHub
parent 0b9dd87ca8
commit 71844755e5
5 changed files with 49 additions and 11 deletions

View File

@ -469,13 +469,12 @@ fn variables_completions() {
// Test completions for $nu
let suggestions = completer.complete("$nu.", 4);
assert_eq!(10, suggestions.len());
assert_eq!(9, suggestions.len());
let expected: Vec<String> = vec![
"config-path".into(),
"env-path".into(),
"history-path".into(),
"history-session-id".into(),
"home-path".into(),
"loginshell-path".into(),
"os-info".into(),
@ -490,13 +489,9 @@ fn variables_completions() {
// Test completions for $nu.h (filter)
let suggestions = completer.complete("$nu.h", 5);
assert_eq!(3, suggestions.len());
assert_eq!(2, suggestions.len());
let expected: Vec<String> = vec![
"history-path".into(),
"history-session-id".into(),
"home-path".into(),
];
let expected: Vec<String> = vec!["history-path".into(), "home-path".into()];
// Match results
match_suggestions(expected, suggestions);