Skip to content

Commit c8de7d8

Browse files
authored
tests: Update snaps for testthat 3.2 (#827)
1 parent fc60535 commit c8de7d8

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

tests/testthat/_snaps/bs-theme-preset-builtin.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22

33
Code
44
builtin_bundle("not-a-preset", version = "5")
5-
Error <rlang_error>
6-
'not-a-preset' is not a valid built-in theme preset provided by {bslib}.
5+
Condition
6+
Error in `validate_builtin_preset_name()`:
7+
! 'not-a-preset' is not a valid built-in theme preset provided by {bslib}.
78
i Available Bootstrap 5 themes are: 'shiny'
89

910
---
1011

1112
Code
1213
builtin_bundle("not-a-preset", version = "4")
13-
Error <rlang_error>
14-
'not-a-preset' is not a valid built-in theme preset provided by {bslib}.
14+
Condition
15+
Error in `validate_builtin_preset_name()`:
16+
! 'not-a-preset' is not a valid built-in theme preset provided by {bslib}.
1517
i No built-in theme presets are available for this version of Bootstrap.
1618

tests/testthat/_snaps/bs-theme-preset.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
Code
44
resolve_bs_preset(preset = "name", bootswatch = "bootswatch")
5-
Error <rlang_error>
6-
Only one of `preset` or `bootswatch` may be provided (`preset` is the preferred choice).
5+
Condition
6+
Error in `resolve_bs_preset()`:
7+
! Only one of `preset` or `bootswatch` may be provided (`preset` is the preferred choice).
78
i Did you mean one of the following options?
89
* `preset = "name"`
910
* `preset = "bootswatch"`
@@ -13,26 +14,29 @@
1314

1415
Code
1516
resolve_bs_preset(preset = c("a", "b"))
16-
Error <rlang_error>
17-
The preset theme `preset` must be a single character string.
17+
Condition
18+
Error in `resolve_bs_preset()`:
19+
! The preset theme `preset` must be a single character string.
1820
x Bad: `preset = c("flatly", "darkly")`
1921
v Good: `preset = "flatly"`
2022

2123
---
2224

2325
Code
2426
resolve_bs_preset(bootswatch = c("a", "b"))
25-
Error <rlang_error>
26-
The preset theme `bootswatch` must be a single character string.
27+
Condition
28+
Error in `resolve_bs_preset()`:
29+
! The preset theme `bootswatch` must be a single character string.
2730
x Bad: `bootswatch = c("flatly", "darkly")`
2831
v Good: `bootswatch = "flatly"`
2932

3033
# resolve_bs_preset(): throws an error if `name` or `bootswatch` don't match existing presets
3134

3235
Code
3336
resolve_bs_preset(preset = "not_a_preset", version = 4)
34-
Error <rlang_error>
35-
'not_a_preset' is not a known preset theme name for Bootstrap version 4.
37+
Condition
38+
Error in `resolve_bs_preset()`:
39+
! 'not_a_preset' is not a known preset theme name for Bootstrap version 4.
3640
i You can list available preset themes:
3741
* Built-in: `builtin_themes(4)`
3842
* Bootswatch: `bootswatch_themes(4)`.
@@ -41,8 +45,9 @@
4145

4246
Code
4347
resolve_bs_preset(bootswatch = "not_a_preset", version = 4)
44-
Error <rlang_error>
45-
'not_a_preset' is not a known preset theme name for Bootstrap version 4.
48+
Condition
49+
Error in `resolve_bs_preset()`:
50+
! 'not_a_preset' is not a known preset theme name for Bootstrap version 4.
4651
i You can list available preset themes:
4752
* Built-in: `builtin_themes(4)`
4853
* Bootswatch: `bootswatch_themes(4)`.

0 commit comments

Comments
 (0)