()
| 1765 | } |
| 1766 | |
| 1767 | fn receipt() -> ReceiptLookup { |
| 1768 | ReceiptLookup::Found( |
| 1769 | serde_json::from_value(serde_json::json!({ |
| 1770 | "schema": 1, "agent": "x", "version": "1", "cli_version": "1", |
| 1771 | "installed_at": "t", "source": "s", "files": [], |
| 1772 | "settings": [{"target":"/tmp/x", "hooks_key":"hooks", "command_prefix":"atomic agent hooks x"}], |
| 1773 | })) |
| 1774 | .unwrap(), |
| 1775 | ) |
| 1776 | } |
| 1777 | |
| 1778 | #[test] |
| 1779 | fn enabled_rests_on_live_hooks_not_on_the_receipt() { |