Skip to content

Commit a582c67

Browse files
committed
Final fixups.
1 parent d794725 commit a582c67

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

selfie.dev/src/pages/jvm/get-started.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ expectSelfie(TimeUnit.DAYS.toMillis(365*1_000_000L)).toBe(31_536_000_000_000_000
183183
expectSelfie(new byte[100]).toMatchDisk();
184184
```
185185

186-
But the real power of selfie is asserting on arbitrary objects using **facets**, which are covered in the [advanced section](/jvm/facets).
186+
But the real power of selfie is asserting on arbitrary objects using **facets**, which are covered in the [facets section](/jvm/facets).
187187

188188
## Reference
189189

@@ -203,6 +203,7 @@ Full API documentation is available at [kdoc.selfie.dev](https://kdoc.selfie.dev
203203
- `interactive`, default
204204
- `readonly`, default if `CI` environment variable is `true`
205205
- `overwrite`, all snapshots can be overwritten
206-
- `Camera` and `Lens` are covered in the [advanced section](/jvm/facets).
206+
- `Camera` and `Lens` are covered in the [facet section](/jvm/facets)
207+
- `cacheSelfie` and binary snapshots (`toBeBase64` and `toBeFile`) are covered in the [cache section](/jvm/cache)
207208

208209
*Pull requests to improve the landing page and documentation are greatly appreciated, you can find the [source code here](https://github.com/diffplug/selfie).*

selfie.dev/src/pages/py/cache.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const imageUrl = "https://selfie.dev/cache.webp";
77

88
<DocsImage imgAbsoluteUrl={imageUrl} />
99

10-
*`cacheSelfie` helps you build fast deterministic tests even if they contain slow non-deterministic components. A generative AI example is available [here](https://github.com/diffplug/selfie/blob/main/python/example-pytest-selfie/tests/cache_selfie_test.py).*
10+
*`cache_selfie` helps you build fast deterministic tests even if they contain slow non-deterministic components. A generative AI example is available [here](https://github.com/diffplug/selfie/blob/main/python/example-pytest-selfie/tests/cache_test.py).*
1111

1212
To use `expect_selfie`, you pass a _value_ that you want to snapshot.
1313

@@ -46,7 +46,7 @@ You have these choices for specifying the data in a snapshot:
4646

4747
```python
4848
cache_selfie(lambda: "string").to_be("string")
49-
cache_selfie(lambda:"string").to_match_disk()
49+
cache_selfie(lambda: "string").to_match_disk()
5050
cache_selfie_binary(lambda: bytearray[3]).to_be_base64("AAAA")
5151
cache_selfie_binary(lambda: bytearray[3]).to_be_file("pkg/someFile.ext")
5252
cache_selfie_binary(lambda: bytearray[3]).to_match_disk()

selfie.dev/src/pages/py/get-started.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,6 @@ Full API documentation is available at [pydoc.selfie.dev](https://pydoc.selfie.d
136136
- `readonly`, default if `CI` environment variable is `true`
137137
- `overwrite`, all snapshots can be overwritten
138138
- `Camera` and `Lens` are covered in the [facets section](/py/facets).
139+
- `cache_selfie` and binary snapshots (`to_be_base64` and `to_be_file`) are covered in the [cache section](/py/cache)
139140

140141
_Pull requests to improve the landing page and documentation are greatly appreciated, you can find the [source code here](https://github.com/diffplug/selfie)._

0 commit comments

Comments
 (0)