Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
test: add wit_world to test case
Browse files Browse the repository at this point in the history
Signed-off-by: Connor Smith <connor.smith.256@gmail.com>
  • Loading branch information
connorsmith256 committed Oct 5, 2023
1 parent 2b55ae4 commit 701edad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ version = "0.1.0"

[actor]
claims = ["wasmcloud:httpserver"]
wasm_target = "wasm32-wasi-preview2"
wasm_target = "wasm32-wasi-preview2"
wit_world = "test-world"
14 changes: 7 additions & 7 deletions crates/wash-lib/tests/parser/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,13 +369,13 @@ fn minimal_rust_actor_preview2() {
);

let config = assert_ok!(result);
assert!(matches!(
config.project_type,
TypeConfig::Actor(ActorConfig {
wasm_target: WasmTarget::WasiPreview2,
..
})
));
assert_eq!(config.project_type, TypeConfig::Actor(ActorConfig {
claims: vec!["wasmcloud:httpserver".to_string()],
key_directory: PathBuf::from("./keys"),
wasm_target: WasmTarget::WasiPreview2,
wit_world: Some("test-world".to_string()),
..Default::default()
}));
}

/// wasm_target=wasm32-wasi-preview1 is properly parsed
Expand Down

0 comments on commit 701edad

Please sign in to comment.