Skip to content

Commit 96ac587

Browse files
docs: matchers admonitions (#13309)
Co-authored-by: Tom Mrazauskas <[email protected]>
1 parent 987102f commit 96ac587

File tree

6 files changed

+30
-6
lines changed

6 files changed

+30
-6
lines changed

docs/UsingMatchers.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,11 @@ test('compiling android goes as expected', () => {
155155
});
156156
```
157157

158-
> Note: the function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail.
158+
:::tip
159+
160+
The function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail.
161+
162+
:::
159163

160164
## And More
161165

website/versioned_docs/version-25.x/UsingMatchers.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,11 @@ test('compiling android goes as expected', () => {
155155
});
156156
```
157157

158-
> Note: the function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail.
158+
:::tip
159+
160+
The function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail.
161+
162+
:::
159163

160164
## And More
161165

website/versioned_docs/version-26.x/UsingMatchers.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,11 @@ test('compiling android goes as expected', () => {
155155
});
156156
```
157157

158-
> Note: the function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail.
158+
:::note
159+
160+
The function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail.
161+
162+
:::
159163

160164
## And More
161165

website/versioned_docs/version-27.x/UsingMatchers.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,11 @@ test('compiling android goes as expected', () => {
155155
});
156156
```
157157

158-
> Note: the function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail.
158+
:::tip
159+
160+
The function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail.
161+
162+
:::
159163

160164
## And More
161165

website/versioned_docs/version-28.x/UsingMatchers.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,11 @@ test('compiling android goes as expected', () => {
155155
});
156156
```
157157

158-
> Note: the function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail.
158+
:::tip
159+
160+
The function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail.
161+
162+
:::
159163

160164
## And More
161165

website/versioned_docs/version-29.0/UsingMatchers.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,11 @@ test('compiling android goes as expected', () => {
155155
});
156156
```
157157

158-
> Note: the function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail.
158+
:::tip
159+
160+
The function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail.
161+
162+
:::
159163

160164
## And More
161165

0 commit comments

Comments
 (0)