-
-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use minified Tabulator JS * Update tests
- Loading branch information
1 parent
43ada7a
commit 208fb7b
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,7 +82,7 @@ def test_resources_model_server(document): | |
with set_curdoc(document): | ||
extension('tabulator') | ||
assert resources.js_files[:2] == [ | ||
'static/extensions/panel/bundled/datatabulator/[email protected]/dist/js/tabulator.js', | ||
'static/extensions/panel/bundled/datatabulator/[email protected]/dist/js/tabulator.min.js', | ||
'static/extensions/panel/bundled/datatabulator/luxon/build/global/luxon.min.js', | ||
] | ||
assert resources.css_files == [ | ||
|
@@ -95,7 +95,7 @@ def test_resources_model_cdn(document): | |
with set_curdoc(document): | ||
extension('tabulator') | ||
assert resources.js_files[:2] == [ | ||
f'{CDN_DIST}bundled/datatabulator/[email protected]/dist/js/tabulator.js', | ||
f'{CDN_DIST}bundled/datatabulator/[email protected]/dist/js/tabulator.min.js', | ||
f'{CDN_DIST}bundled/datatabulator/luxon/build/global/luxon.min.js', | ||
] | ||
assert resources.css_files == [ | ||
|
@@ -108,7 +108,7 @@ def test_resources_model_inline(document): | |
with set_curdoc(document): | ||
extension('tabulator') | ||
assert resources.js_raw[-2:] == [ | ||
(DIST_DIR / 'bundled/datatabulator/[email protected]/dist/js/tabulator.js').read_text(encoding='utf-8'), | ||
(DIST_DIR / 'bundled/datatabulator/[email protected]/dist/js/tabulator.min.js').read_text(encoding='utf-8'), | ||
(DIST_DIR / 'bundled/datatabulator/luxon/build/global/luxon.min.js').read_text(encoding='utf-8') | ||
] | ||
assert resources.css_raw == [ | ||
|