Skip to content

Commit 3aa7abd

Browse files
committed
Removing more dash namespace references
1 parent 0ad3b24 commit 3aa7abd

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

tests/testthat/test-attributes.R

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -92,32 +92,32 @@ test_that("stylesheets can be added with or without attributes", {
9292
# construct the script tags as they should be generated within
9393
# Dash for R this way the mod times and version numbers will
9494
# always be in sync with those used by the backend
95-
internal_hrefs <- vapply(dash:::.dash_js_metadata(), function(x) x$src$href, character(1))
95+
internal_hrefs <- vapply(.dash_js_metadata(), function(x) x$src$href, character(1))
9696

97-
dcc <- dash:::.dashCoreComponents_js_metadata()
98-
dhc <- dash:::.dashHtmlComponents_js_metadata()
99-
dt <- dash:::.dashTable_js_metadata()
97+
dcc <- .dashCoreComponents_js_metadata()
98+
dhc <- .dashHtmlComponents_js_metadata()
99+
dt <- .dashTable_js_metadata()
100100

101101
dcc_min <- dcc[which(sapply(dcc, "[[", "script") == "dcc/dash_core_components.js")][[1]]
102102
dcc_shared <- dcc[which(sapply(dcc, "[[", "script") == "dcc/dash_core_components-shared.js")][[1]]
103103
dhc_min <- dhc[which(sapply(dhc, "[[", "script") == "html/dash_html_components.min.js")][[1]]
104104
dt_bundle <- dt[which(sapply(dt, "[[", "script") == "dash_table/bundle.js")][[1]]
105105

106-
dcc_min_path <- dash:::getDependencyPath(dcc_min)
106+
dcc_min_path <- getDependencyPath(dcc_min)
107107
dcc_min_modtime <- as.integer(file.mtime(dcc_min_path))
108-
dcc_min_filename <- basename(dash:::buildFingerprint(dcc_min$script, dcc_min$version, dcc_min_modtime))
108+
dcc_min_filename <- basename(buildFingerprint(dcc_min$script, dcc_min$version, dcc_min_modtime))
109109

110-
dcc_shared_path <- dash:::getDependencyPath(dcc_shared)
110+
dcc_shared_path <- getDependencyPath(dcc_shared)
111111
dcc_shared_modtime <- as.integer(file.mtime(dcc_shared_path))
112-
dcc_shared_filename <- basename(dash:::buildFingerprint(dcc_shared$script, dcc_shared$version, dcc_shared_modtime))
112+
dcc_shared_filename <- basename(buildFingerprint(dcc_shared$script, dcc_shared$version, dcc_shared_modtime))
113113

114-
dhc_min_path <- dash:::getDependencyPath(dhc_min)
114+
dhc_min_path <- getDependencyPath(dhc_min)
115115
dhc_min_modtime <- as.integer(file.mtime(dhc_min_path))
116-
dhc_min_filename <- basename(dash:::buildFingerprint(dhc_min$script, dhc_min$version, dhc_min_modtime))
116+
dhc_min_filename <- basename(buildFingerprint(dhc_min$script, dhc_min$version, dhc_min_modtime))
117117

118-
dt_bundle_path <- dash:::getDependencyPath(dt_bundle)
118+
dt_bundle_path <- getDependencyPath(dt_bundle)
119119
dt_bundle_modtime <- as.integer(file.mtime(dt_bundle_path))
120-
dt_bundle_filename <- basename(dash:::buildFingerprint(dt_bundle$script, dt_bundle$version, dt_bundle_modtime))
120+
dt_bundle_filename <- basename(buildFingerprint(dt_bundle$script, dt_bundle$version, dt_bundle_modtime))
121121

122122
dcc_min_ref <- paste0("/",
123123
"_dash-component-suites/",
@@ -202,7 +202,7 @@ test_that("invalid attributes trigger an error", {
202202
)
203203
)
204204

205-
expect_error(dash:::assertValidExternals(external_scripts, external_stylesheets),
205+
expect_error(assertValidExternals(external_scripts, external_stylesheets),
206206
"The following script or stylesheet attributes are invalid: baz, foo, bar.")
207207
})
208208

@@ -217,7 +217,7 @@ test_that("not passing named attributes triggers an error", {
217217

218218
external_scripts <- list()
219219

220-
expect_error(dash:::assertValidExternals(external_scripts, external_stylesheets),
220+
expect_error(assertValidExternals(external_scripts, external_stylesheets),
221221
"Please verify that all attributes are named elements when specifying URLs for scripts and stylesheets.")
222222
})
223223

0 commit comments

Comments
 (0)