diff --git a/docs/UsingMatchers.md b/docs/UsingMatchers.md index 11a01dcd189d..8b375525e126 100644 --- a/docs/UsingMatchers.md +++ b/docs/UsingMatchers.md @@ -155,7 +155,11 @@ test('compiling android goes as expected', () => { }); ``` -> Note: the function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail. +:::tip + +The function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail. + +::: ## And More diff --git a/website/versioned_docs/version-25.x/UsingMatchers.md b/website/versioned_docs/version-25.x/UsingMatchers.md index dc7dd4971959..51634dfaf842 100644 --- a/website/versioned_docs/version-25.x/UsingMatchers.md +++ b/website/versioned_docs/version-25.x/UsingMatchers.md @@ -155,7 +155,11 @@ test('compiling android goes as expected', () => { }); ``` -> Note: the function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail. +:::tip + +The function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail. + +::: ## And More diff --git a/website/versioned_docs/version-26.x/UsingMatchers.md b/website/versioned_docs/version-26.x/UsingMatchers.md index dc7dd4971959..fd9347ae99ca 100644 --- a/website/versioned_docs/version-26.x/UsingMatchers.md +++ b/website/versioned_docs/version-26.x/UsingMatchers.md @@ -155,7 +155,11 @@ test('compiling android goes as expected', () => { }); ``` -> Note: the function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail. +:::note + +The function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail. + +::: ## And More diff --git a/website/versioned_docs/version-27.x/UsingMatchers.md b/website/versioned_docs/version-27.x/UsingMatchers.md index 11a01dcd189d..8b375525e126 100644 --- a/website/versioned_docs/version-27.x/UsingMatchers.md +++ b/website/versioned_docs/version-27.x/UsingMatchers.md @@ -155,7 +155,11 @@ test('compiling android goes as expected', () => { }); ``` -> Note: the function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail. +:::tip + +The function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail. + +::: ## And More diff --git a/website/versioned_docs/version-28.x/UsingMatchers.md b/website/versioned_docs/version-28.x/UsingMatchers.md index 11a01dcd189d..8b375525e126 100644 --- a/website/versioned_docs/version-28.x/UsingMatchers.md +++ b/website/versioned_docs/version-28.x/UsingMatchers.md @@ -155,7 +155,11 @@ test('compiling android goes as expected', () => { }); ``` -> Note: the function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail. +:::tip + +The function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail. + +::: ## And More diff --git a/website/versioned_docs/version-29.0/UsingMatchers.md b/website/versioned_docs/version-29.0/UsingMatchers.md index 11a01dcd189d..8b375525e126 100644 --- a/website/versioned_docs/version-29.0/UsingMatchers.md +++ b/website/versioned_docs/version-29.0/UsingMatchers.md @@ -155,7 +155,11 @@ test('compiling android goes as expected', () => { }); ``` -> Note: the function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail. +:::tip + +The function that throws an exception needs to be invoked within a wrapping function otherwise the `toThrow` assertion will fail. + +::: ## And More