@@ -92,32 +92,32 @@ test_that("stylesheets can be added with or without attributes", {
92
92
# construct the script tags as they should be generated within
93
93
# Dash for R this way the mod times and version numbers will
94
94
# 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 ))
96
96
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()
100
100
101
101
dcc_min <- dcc [which(sapply(dcc , " [[" , " script" ) == " dcc/dash_core_components.js" )][[1 ]]
102
102
dcc_shared <- dcc [which(sapply(dcc , " [[" , " script" ) == " dcc/dash_core_components-shared.js" )][[1 ]]
103
103
dhc_min <- dhc [which(sapply(dhc , " [[" , " script" ) == " html/dash_html_components.min.js" )][[1 ]]
104
104
dt_bundle <- dt [which(sapply(dt , " [[" , " script" ) == " dash_table/bundle.js" )][[1 ]]
105
105
106
- dcc_min_path <- dash ::: getDependencyPath(dcc_min )
106
+ dcc_min_path <- getDependencyPath(dcc_min )
107
107
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 ))
109
109
110
- dcc_shared_path <- dash ::: getDependencyPath(dcc_shared )
110
+ dcc_shared_path <- getDependencyPath(dcc_shared )
111
111
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 ))
113
113
114
- dhc_min_path <- dash ::: getDependencyPath(dhc_min )
114
+ dhc_min_path <- getDependencyPath(dhc_min )
115
115
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 ))
117
117
118
- dt_bundle_path <- dash ::: getDependencyPath(dt_bundle )
118
+ dt_bundle_path <- getDependencyPath(dt_bundle )
119
119
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 ))
121
121
122
122
dcc_min_ref <- paste0(" /" ,
123
123
" _dash-component-suites/" ,
@@ -202,7 +202,7 @@ test_that("invalid attributes trigger an error", {
202
202
)
203
203
)
204
204
205
- expect_error(dash ::: assertValidExternals(external_scripts , external_stylesheets ),
205
+ expect_error(assertValidExternals(external_scripts , external_stylesheets ),
206
206
" The following script or stylesheet attributes are invalid: baz, foo, bar." )
207
207
})
208
208
@@ -217,7 +217,7 @@ test_that("not passing named attributes triggers an error", {
217
217
218
218
external_scripts <- list ()
219
219
220
- expect_error(dash ::: assertValidExternals(external_scripts , external_stylesheets ),
220
+ expect_error(assertValidExternals(external_scripts , external_stylesheets ),
221
221
" Please verify that all attributes are named elements when specifying URLs for scripts and stylesheets." )
222
222
})
223
223
0 commit comments