Skip to main content
Tests can assert on events that are expected to be published. The following example sets up a test environment, registers an increment contract, and checks after the increment invocations which events were published.
For the full example the above snippet is extracted from, see the events example contract.