Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Nov 22, 2024
1 parent 1dae465 commit b84a499
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/build/guides/testing/unit-tests.mdx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: Unit Tests
hide_table_of_contents: true
description: Write unit tests.
description: Unit tests are small tests that test small contracts.
sidebar_position: 1
---

Unit tests are small tests focused on testing a piece of functionality within a contract.

Unit tests are small tests that test one piece of functionality within a contract.

The following is an example of a unit test, written to test the [increment contract]. The contract has an `increment` function, that increases a counter value by one on every invocation. The following test invokes that contract's function several times, and checks that the value increases by one.

Expand Down

0 comments on commit b84a499

Please sign in to comment.