Skip to content

Commit

Permalink
Do not validating versions in test cases.
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Su <[email protected]>
  • Loading branch information
ghosind committed Sep 12, 2024
1 parent 792f037 commit 0768c25
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_install_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ dvm_test_error() {

# Install deno v1.0.0
TARGET_VERSION="1.45.0"
dvm install "v$TARGET_VERSION" --verbose || dvm_test_error "run 'dvm install v$TARGET_VERSION' failed"
dvm install "v$TARGET_VERSION" --skip-validation --verbose || dvm_test_error "run 'dvm install v$TARGET_VERSION' failed"

# Check installed version directory
[ -d "$DVM_DIR/versions/v$TARGET_VERSION" ] || dvm_test_error "'$DVM_DIR/versions/v$TARGET_VERSION' is not a directory"

# Install latest version
dvm install --verbose
dvm install --verbose --skip-validation

# Install another deno
dvm install v1.40.0 --verbose
dvm install v1.40.0 --verbose --skip-validation

# Install deno by shortcut
dvm i v1.45.0 --verbose
dvm i v1.45.0 --verbose --skip-validation

# Check deno version
dvm run "v$TARGET_VERSION" --version | grep "deno $TARGET_VERSION" || dvm_test_error "deno is invalid"
Expand Down

0 comments on commit 0768c25

Please sign in to comment.