mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
chore: update tests (#13998)
This commit is contained in:
committed by
GitHub
parent
4475e93e13
commit
2d5f5a9230
@@ -254,9 +254,9 @@ mod tests {
|
||||
assert!(ident("prefix:-base").is_err());
|
||||
assert!(ident("prefix:base-").is_err());
|
||||
|
||||
assert!(ident("pre--fix:base--sep").is_err());
|
||||
assert!(ident("prefix:base--sep").is_err());
|
||||
assert!(ident("pre--fix:base").is_err());
|
||||
assert!(ident("pre--fix:base--sep").is_ok());
|
||||
assert!(ident("prefix:base--sep").is_ok());
|
||||
assert!(ident("pre--fix:base").is_ok());
|
||||
|
||||
assert!(ident("prefix::base").is_err());
|
||||
assert!(ident(":base").is_err());
|
||||
|
||||
@@ -2945,6 +2945,7 @@ where
|
||||
/// }
|
||||
/// }
|
||||
/// ```
|
||||
#[allow(rustdoc::invalid_codeblock_attributes)]
|
||||
#[skip_serializing_none]
|
||||
#[derive(Debug, Default, PartialEq, Clone, Deserialize, Serialize)]
|
||||
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
|
||||
|
||||
@@ -433,7 +433,7 @@ mod tests {
|
||||
#[cfg(target_os = "macos")]
|
||||
assert!(resource_dir.is_err());
|
||||
#[cfg(target_os = "linux")]
|
||||
assert_eq!(resource_dir.unwrap(), PathBuf::from("/usr/lib/my-app"));
|
||||
assert_eq!(resource_dir.unwrap(), PathBuf::from("/usr/lib/MyApp"));
|
||||
#[cfg(windows)]
|
||||
assert_eq!(resource_dir.unwrap(), path.parent().unwrap());
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ source: crates/tests/acl/src/lib.rs
|
||||
expression: resolved
|
||||
---
|
||||
Resolved {
|
||||
has_app_acl: false,
|
||||
allowed_commands: {
|
||||
"plugin:ping|ping": [
|
||||
ResolvedCommand {
|
||||
|
||||
@@ -3,6 +3,7 @@ source: crates/tests/acl/src/lib.rs
|
||||
expression: resolved
|
||||
---
|
||||
Resolved {
|
||||
has_app_acl: false,
|
||||
allowed_commands: {
|
||||
"plugin:fs|read_dir": [
|
||||
ResolvedCommand {
|
||||
|
||||
@@ -3,6 +3,7 @@ source: crates/tests/acl/src/lib.rs
|
||||
expression: resolved
|
||||
---
|
||||
Resolved {
|
||||
has_app_acl: false,
|
||||
allowed_commands: {
|
||||
"plugin:fs|read_dir": [
|
||||
ResolvedCommand {
|
||||
|
||||
@@ -3,6 +3,7 @@ source: crates/tests/acl/src/lib.rs
|
||||
expression: resolved
|
||||
---
|
||||
Resolved {
|
||||
has_app_acl: false,
|
||||
allowed_commands: {
|
||||
"plugin:ping|ping": [
|
||||
ResolvedCommand {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
---
|
||||
source: crates/tests/acl/src/lib.rs
|
||||
expression: resolved
|
||||
snapshot_kind: text
|
||||
---
|
||||
Resolved {
|
||||
has_app_acl: false,
|
||||
allowed_commands: {
|
||||
"plugin:fs|move": [
|
||||
ResolvedCommand {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
---
|
||||
source: crates/tests/acl/src/lib.rs
|
||||
expression: resolved
|
||||
snapshot_kind: text
|
||||
---
|
||||
Resolved {
|
||||
has_app_acl: false,
|
||||
allowed_commands: {
|
||||
"plugin:fs|move": [
|
||||
ResolvedCommand {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
---
|
||||
source: crates/tests/acl/src/lib.rs
|
||||
expression: resolved
|
||||
snapshot_kind: text
|
||||
---
|
||||
Resolved {
|
||||
has_app_acl: false,
|
||||
allowed_commands: {
|
||||
"plugin:fs|move": [
|
||||
ResolvedCommand {
|
||||
|
||||
@@ -3,6 +3,7 @@ source: crates/tests/acl/src/lib.rs
|
||||
expression: resolved
|
||||
---
|
||||
Resolved {
|
||||
has_app_acl: false,
|
||||
allowed_commands: {
|
||||
"plugin:os|spawn": [
|
||||
ResolvedCommand {
|
||||
@@ -88,10 +89,5 @@ Resolved {
|
||||
deny: [],
|
||||
},
|
||||
},
|
||||
global_scope: {
|
||||
"os": ResolvedScope {
|
||||
allow: [],
|
||||
deny: [],
|
||||
},
|
||||
},
|
||||
global_scope: {},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user