From 247d7a031fc373499c17ab1b579230ead2e29b95 Mon Sep 17 00:00:00 2001 From: Pierre Troger Date: Fri, 6 Sep 2024 11:42:06 +0200 Subject: [PATCH] formatted new rego tests --- .../__test__/criteria/intent/amount_test.rego | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/apps/policy-engine/src/resource/open-policy-agent/rego/__test__/criteria/intent/amount_test.rego b/apps/policy-engine/src/resource/open-policy-agent/rego/__test__/criteria/intent/amount_test.rego index ded1a3d6b..4815c9d2c 100644 --- a/apps/policy-engine/src/resource/open-policy-agent/rego/__test__/criteria/intent/amount_test.rego +++ b/apps/policy-engine/src/resource/open-policy-agent/rego/__test__/criteria/intent/amount_test.rego @@ -31,28 +31,26 @@ test_checkIntentAmount2 { "action": "signTransaction", "principal": { "userId": "test-bob-user-uid", - "id": "0x7e431d5b570ba38e2e036387a596219ae9076e8a488a6149b491892b03582166" + "id": "0x7e431d5b570ba38e2e036387a596219ae9076e8a488a6149b491892b03582166", }, - "approvals": [ - { - "userId": "test-bob-user-uid", - "id": "0x7e431d5b570ba38e2e036387a596219ae9076e8a488a6149b491892b03582166" - } - ], + "approvals": [{ + "userId": "test-bob-user-uid", + "id": "0x7e431d5b570ba38e2e036387a596219ae9076e8a488a6149b491892b03582166", + }], "intent": { "to": "eip155:1:0x76d1b7f9b3f69c435eef76a98a415332084a856f", "from": "eip155:1:0x0301e2724a40e934cce3345928b88956901aa127", "type": "transferNative", "amount": "9223372036854776000", - "token": "eip155:1/slip44:60" + "token": "eip155:1/slip44:60", }, "transactionRequest": { "chainId": 1, "from": "0x0301e2724a40e934cce3345928b88956901aa127", "to": "0x76d1b7f9b3f69c435eef76a98a415332084a856f", - "value": "0x80000000000000c0" + "value": "0x80000000000000c0", }, - "resource": { "uid": "eip155:eoa:0x0301e2724a40e934cce3345928b88956901aa127" } + "resource": {"uid": "eip155:eoa:0x0301e2724a40e934cce3345928b88956901aa127"}, } checkIntentAmount({"operator": operators.greaterThanOrEqual, "value": "1"}) with input as requ