From f176382b3400e14eafda0ea8c4705b304b36a7da Mon Sep 17 00:00:00 2001 From: Tamo Date: Mon, 10 Oct 2022 20:40:27 +0200 Subject: [PATCH] fix the tests --- dump/src/reader/mod.rs | 2 +- .../snapshots/dump__reader__test__import_dump_v4-4.snap | 4 ++-- dump/src/reader/v4/mod.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dump/src/reader/mod.rs b/dump/src/reader/mod.rs index 5d50173ef..0a2d14008 100644 --- a/dump/src/reader/mod.rs +++ b/dump/src/reader/mod.rs @@ -169,7 +169,7 @@ pub(crate) mod test { // keys let keys = dump.keys().collect::>>().unwrap(); - insta::assert_json_snapshot!(keys); + insta::assert_json_snapshot!(keys, { "[].uid" => "[uuid]" }); // indexes let mut indexes = dump.indexes().unwrap().collect::>>().unwrap(); diff --git a/dump/src/reader/snapshots/dump__reader__test__import_dump_v4-4.snap b/dump/src/reader/snapshots/dump__reader__test__import_dump_v4-4.snap index 86cc4060a..4274b1369 100644 --- a/dump/src/reader/snapshots/dump__reader__test__import_dump_v4-4.snap +++ b/dump/src/reader/snapshots/dump__reader__test__import_dump_v4-4.snap @@ -5,7 +5,7 @@ expression: keys [ { "description": "Default Search API Key (Use it to search from the frontend)", - "uid": "7bc06c90-ca16-4eb9-838e-2be2d17e51a9", + "uid": "[uuid]", "actions": [ "search" ], @@ -18,7 +18,7 @@ expression: keys }, { "description": "Default Admin API Key (Use it for all other operations. Caution! Do not use it on a public frontend)", - "uid": "ab9d6a00-7940-4278-b824-1755c98c1849", + "uid": "[uuid]", "actions": [ "*" ], diff --git a/dump/src/reader/v4/mod.rs b/dump/src/reader/v4/mod.rs index 81fd63941..27c1aa89d 100644 --- a/dump/src/reader/v4/mod.rs +++ b/dump/src/reader/v4/mod.rs @@ -257,7 +257,7 @@ pub(crate) mod test { // keys let keys = dump.keys().collect::>>().unwrap(); - insta::assert_json_snapshot!(keys); + insta::assert_json_snapshot!(keys, { "[].uid" => "[uuid]" }); // indexes let mut indexes = dump.indexes().unwrap().collect::>>().unwrap();