Skip to content

Commit b6e0048

Browse files
committed
Update tests/testthat/test-tag-hooks.R
1 parent 99c4ad1 commit b6e0048

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

tests/testthat/test-tag-hooks.R

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -143,32 +143,6 @@ test_that("Pre hooks render in order", {
143143
))
144144
expect_equal(state, 4)
145145

146-
state <- 0
147-
renderTags(tagList(
148-
div(
149-
.renderHook = function(x) {
150-
state <<- state + 1
151-
message("A", state)
152-
},
153-
div(
154-
.renderHook = function(x) {
155-
state <<- state + 1
156-
message("B", state)
157-
},
158-
.postRenderHook = function() {
159-
state <<- state + 1
160-
message("C", state)
161-
}
162-
),
163-
.postRenderHook = function() {
164-
state <<- state + 1
165-
message("D", state)
166-
}
167-
)
168-
))
169-
expect_equal(state, 4)
170-
171-
172146
# post render hook still executes on failure
173147
state <- 0
174148
expect_warning(renderTags(tagList(

0 commit comments

Comments
 (0)