Skip to content

Commit

Permalink
test: 🚨 Ensure config is at least set
Browse files Browse the repository at this point in the history
  • Loading branch information
ddanier committed Apr 13, 2024
1 parent 71aad7e commit fb304d7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion nur-tests/nurfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ def "nur test-env" [] {
}

def "nur test-config" [] {
std assert ($env.config | is-not-empty)
try {
$env.config
} catch {
error make {"msg": "Config does not exist"}
}
}

def "nur test-nu" [] {
Expand Down
4 changes: 4 additions & 0 deletions src/nu-scripts/default_nur_config.nu
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# nur Config File

# We don't set anything special here
$env.config = {}
2 changes: 1 addition & 1 deletion src/nu-scripts/default_nur_env.nu
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# nur Environment Config File
# nur Environment File

# Specifies how environment variables are:
# - converted from a string to a value on Nushell startup (from_string)
Expand Down

0 comments on commit fb304d7

Please sign in to comment.