Skip to content

Commit 463e0f8

Browse files
committed
tests/on-device: test vim, not vi (android can have vi)
1 parent da9596d commit 463e0f8

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

tests/on-device/config-default.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Copyright (c) 2019-2021, see AUTHORS. Licensed under MIT License, see LICENSE.
1+
# Copyright (c) 2019-2024, see AUTHORS. Licensed under MIT License, see LICENSE.
22

33
load lib
44

55
@test 'default config can be switched into' {
66
switch_to_default_config
77

8-
assert_command nix-on-droid nix-shell bash vi find
8+
assert_command nix-on-droid nix-shell bash vim find
99
assert_no_command dash xonsh zsh
1010
}

tests/on-device/config-flake-h-m.bats

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Copyright (c) 2019-2021, see AUTHORS. Licensed under MIT License, see LICENSE.
1+
# Copyright (c) 2019-2024, see AUTHORS. Licensed under MIT License, see LICENSE.
22

33
load lib
44

55
@test 'flake + h-m + #134 overlays case work' {
66
# assertions to verify initial state is as expected
7-
assert_command vi
7+
assert_command vim
88
assert_no_command dash zsh
99

1010
# set up / build / activate the configuration
@@ -21,10 +21,10 @@ load lib
2121

2222
# test that both zsh (system) and dash (user) have appeared in $PATH
2323
assert_command dash zsh
24-
assert_no_command vi
24+
assert_no_command vim
2525

2626
# check that reverting works too
2727
switch_to_default_config
28-
assert_command vi
28+
assert_command vim
2929
assert_no_command dash zsh
3030
}

tests/on-device/config-flake.bats

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2019-2022, see AUTHORS. Licensed under MIT License, see LICENSE.
1+
# Copyright (c) 2019-2024, see AUTHORS. Licensed under MIT License, see LICENSE.
22

33
load lib
44

@@ -7,7 +7,7 @@ function flake_example() {
77
local flake_file_name="$2"
88

99
# assertions to verify initial state is as expected
10-
assert_command vi
10+
assert_command vim
1111
assert_no_command unzip
1212

1313
# set up / build / activate the configuration
@@ -26,13 +26,13 @@ function flake_example() {
2626
# test presence of several crucial commands
2727
assert_command nix-on-droid nix-shell bash
2828

29-
# test that nano has replaced vi and unzip has appeared in $PATH
29+
# test that nano has replaced vim and unzip has appeared in $PATH
3030
assert_command nano unzip
31-
assert_no_command vi
31+
assert_no_command vim
3232

3333
# check that reverting works too
3434
switch_to_default_config
35-
assert_command vi
35+
assert_command vim
3636
assert_no_command unzip
3737
}
3838

tests/on-device/config-h-m.bats

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ teardown() {
1616

1717
@test 'using home-manager works' {
1818
# assertions to verify initial state is as expected
19-
assert_command vi
19+
assert_command vim
2020
assert_no_command dash
2121
[[ ! -e ~/.config/example ]]
2222

@@ -33,8 +33,8 @@ teardown() {
3333
# test common commands presence
3434
assert_command nix-on-droid nix-shell bash
3535

36-
# test that vi has disappeared
37-
assert_no_command vi
36+
# test that vim has disappeared
37+
assert_no_command vim
3838

3939
# test dash has appeared and works
4040
assert_command dash
@@ -44,7 +44,7 @@ teardown() {
4444

4545
# check that reverting works too
4646
switch_to_default_config
47-
assert_command vi
47+
assert_command vim
4848
assert_no_command unzip
4949

5050
# file will be still present because home-manager needs to be set up to remove old links

0 commit comments

Comments
 (0)