@@ -120,31 +120,31 @@ test_that("scope can be specified as is", {
120
120
121
121
test_that(" Can properly determine style_after_saving" , {
122
122
withr :: with_envvar(list (save_after_styling = TRUE ), {
123
- expect_warning(op <- save_after_styling_is_active(), " is depreciated " )
124
- expect_equal (op , TRUE )
123
+ expect_warning(op <- save_after_styling_is_active(), " is deprecated " )
124
+ expect_true (op )
125
125
})
126
126
127
127
withr :: with_envvar(list (save_after_styling = FALSE ), {
128
- expect_warning(op <- save_after_styling_is_active(), " is depreciated " )
129
- expect_equal (op , FALSE )
128
+ expect_warning(op <- save_after_styling_is_active(), " is deprecated " )
129
+ expect_false (op )
130
130
})
131
131
132
132
133
133
withr :: with_options(list (styler.save_after_styling = TRUE ), {
134
134
expect_silent(op <- save_after_styling_is_active())
135
- expect_equal (op , TRUE )
135
+ expect_true (op )
136
136
})
137
137
138
138
withr :: with_options(list (styler.save_after_styling = TRUE ), {
139
139
withr :: with_envvar(list (save_after_styling = FALSE ), {
140
- expect_warning(op <- save_after_styling_is_active(), " is depreciated " )
141
- expect_equal (op , TRUE )
140
+ expect_warning(op <- save_after_styling_is_active(), " is deprecated " )
141
+ expect_true (op )
142
142
})
143
143
})
144
144
145
145
withr :: with_options(list (styler.save_after_styling = FALSE ), {
146
146
expect_silent(op <- save_after_styling_is_active())
147
- expect_equal (op , FALSE )
147
+ expect_false (op )
148
148
})
149
149
})
150
150
0 commit comments