Skip to content

Commit

Permalink
docs(properties): fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mcous committed Mar 12, 2022
1 parent ea43b4a commit e4987a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/advanced/properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Mocking and verifying property setters and deleters is most useful for testing c

You cannot verify getters with `Decoy.verify`. The `verify` method is for verifying side-effects, and it is the opinion of the author that property getters should not trigger side-effects. Getter-triggered side effects are confusing and do not communicate the design intent of a system.

### Verify a setter
### Verifying a setter

Use [decoy.Prop.set][] to create a setter rehearsal to use in [decoy.Decoy.verify][].

Expand All @@ -106,7 +106,7 @@ decoy.verify(
)
```

### Verify a deleter
### Verifying a deleter

Use [decoy.Prop.delete][] to create a deleter rehearsal to use in [decoy.Decoy.verify][].

Expand All @@ -116,8 +116,8 @@ dep = decoy.mock()
del dep.some_property

decoy.verify(
decoy.prop(dep.some_property).delete() # <- "rehearsal" of a property setter
).then_return(42)
decoy.prop(dep.some_property).delete() # <- "rehearsal" of a property deleter
)
```

## Example
Expand Down

0 comments on commit e4987a2

Please sign in to comment.