From 96ac5877b71315ac0e42538efbe0400fc6fc0fa0 Mon Sep 17 00:00:00 2001 From: paulreece <96156234+paulreece@users.noreply.github.com> Date: Wed, 28 Sep 2022 02:51:41 -0400 Subject: [PATCH] docs: matchers admonitions (#13309) Co-authored-by: Tom Mrazauskas --- docs/UsingMatchers.md | 6 +++++- website/versioned_docs/version-25.x/UsingMatchers.md | 6 +++++- website/versioned_docs/version-26.x/UsingMatchers.md | 6 +++++- website/versioned_docs/version-27.x/UsingMatchers.md | 6 +++++- website/versioned_docs/version-28.x/UsingMatchers.md | 6 +++++- website/versioned_docs/version-29.0/UsingMatchers.md | 6 +++++- 6 files changed, 30 insertions(+), 6 deletions(-) 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