{
"id": "fn-test-it",
"dataComponent": "test",
"heading": {
"title": "it",
"badges": [
"Testing",
"Case"
]
},
"synopsis": "Defines an individual test case with a descriptive name, then calls the provided callback to perform assertions.",
"codeBlocks": [
"extend(\"test\")\\n\\ndescribe(\"1+1\", () => {\\n it(\"should be 2\", () => {\\n expect_equal( 1 + 1, 2 )\\n })\\n})"
],
"notes": [
"The first argument is a descriptive string for the test name or scenario.",
"The second argument is a callback function that typically contains one or more assertions, such as expect_equal(...).",
"When 'it(...)' is executed, the callback runs immediately. If any assertions fail, it raises an error that halts the test."
]
}