From 6fbd8f7d9bd5012fe6abe397d0657f7fb51501f2 Mon Sep 17 00:00:00 2001 From: buyuxiang <347586493@qq.com> Date: Mon, 14 Feb 2022 16:13:22 +0800 Subject: [PATCH] fix code format Change-Id: I583aa6344fff967285b024fddef9f45ac8ee2baf --- docs/BUILTIN.md | 14 +++++--------- examples/httpbingo_test.json | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/docs/BUILTIN.md b/docs/BUILTIN.md index 064bda60..47cb6195 100644 --- a/docs/BUILTIN.md +++ b/docs/BUILTIN.md @@ -6,16 +6,12 @@ HttpRunner+ validation should follow the following format. `check`, `assert` and ```json { - "check": "status_code", - // target field, usually used with jmespath - "assert": "equals", - // assertion method, you can use builtin method or custom defined function - "expect": 200, - // expected value - "msg": "check response status code" - // optional, print this message if assertion failed + "check": "status_code", // target field, usually used with jmespath + "assert": "equals", // assertion method, you can use builtin method or custom defined function + "expect": 200, // expected value + "msg": "check response status code" // optional, print this message if assertion failed } -``` +```g The `assert` method name will be mapped to a built-in function with the following function signature. diff --git a/examples/httpbingo_test.json b/examples/httpbingo_test.json index 5f1704b2..f61b007e 100644 --- a/examples/httpbingo_test.json +++ b/examples/httpbingo_test.json @@ -78,4 +78,4 @@ ] } ] -} \ No newline at end of file +}