fnm 1.22.9

Fast and simple Node.js version manager
1
2
3
4
5
6
7
8
9
10
11
12
use super::shell::Shell;
use super::{Call, ExpectCommandOutput};

pub(crate) fn test_node_version<S: Shell>(
    expected_version: &'static str,
) -> ExpectCommandOutput<S, Call> {
    ExpectCommandOutput::new(
        Call::new("node", vec!["-v"]),
        expected_version,
        "Node version",
    )
}