Skip to content

Commit

Permalink
fix: unit test bug
Browse files Browse the repository at this point in the history
  • Loading branch information
brodo committed Nov 3, 2022
1 parent 8341c89 commit 69e064f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "json_env"
version = "1.2.0"
version = "1.2.1"
edition = "2021"
license = "Apache-2.0"
description ="Loads an environment variables from a JSON file (`.env.json` per default) and starts a subprocess with them."
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@brodo/json_env",
"version": "1.2.0",
"version": "1.2.1",
"description": "json_env is dotenv, but with JSON.",
"directories": {
"example": "examples"
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ mod tests {
#[test]
fn expand_nested() {
let extendable_json = include_str!("../examples/extend2.json");
env::set_var("FOO", "Bar");
let val = parse_and_extract(&extendable_json, "$");
assert!(val.is_ok());
let result = value_to_hash_map(&val.unwrap(), true);
Expand Down

0 comments on commit 69e064f

Please sign in to comment.