Rachel Fenichel
d11cc047a4
chore: fix more lint ( #5700 )
...
* chore: fix 918 violations of comma-dangle rule
* chore: fix 2 violations of comma-spacing
* chore: fix 13 violations of padded-blocks
* chore: fix 50 violations of block-spacing
* chore: fix one violation of semi-spacing
* chore: fix 4 violations of space-before-blocks
* chore: fix 38 violations of object-curly-spacing
* chore: fix 30 violations of key-spacing
* chore: fix 3 violations of quote-props
* chore: fix 5 violations of arrow-parens
* chore: fix 8 violations of no-tabs
* chore: allow uncommented helper functions in mocha tests
* chore: fix several more lint errors
* chore: tweak eslint configuration in core and tests
* chore: rebuild for tests
2021-11-10 10:18:36 -08:00
Rachel Fenichel
1ebec55393
chore: apply prefer-const rule fixes in mocha tests ( #5682 )
2021-11-05 14:25:33 -07:00
Rachel Fenichel
52c0427d85
chore: run eslint--fix for no-var rule in tests/mocha ( #5637 )
2021-10-25 11:37:23 -07:00
kozbial
4efdd72a24
Update captureWarnings usages to assertWarnings
2021-09-23 12:31:55 -07:00
kozbial
f3e8c25a50
Catch warnings logged during registry test
2021-09-23 12:31:55 -07:00
Beka Westberg
07057d087c
feat: adds hooks for serializing plugins ( #5276 )
...
* Reformat registry tests
* Add tests for plugin hooks
* Add plugin hooks for serialization
* Switch PluginSerializer to IPluginSerializer
* fix: types
* fix: PR comments
* fix: tests
* cleanup: formatting
* fix: types
* feat: add respecting case in registry
* feat: add separate registry for serializers
* fix: rename serialiation registry alias
* fix: move serializer interface into interface dir
2021-09-20 13:08:35 -07:00
alschmiedt
5b1586ee1b
test: update mocha tests to use goog_module ( #5440 )
...
* Use goog.module in mocha tests
* Fix compiler warnings
* Make test helpers a module
* Name test modules Blockly.test.*
This is to be more consistent with how non-test modules are named.
Also remove top-level goog.require of TestHelpers (now
Blockly.test.helpers) since requiring a side-effect-less module does
nothing.
* Convert block_test.js and comment_test.js to goog.module syntax
* Address PR comments
* Goog modulify tests
* Goog modulify toolbox helpers
* Fixes imports and moves common tests from workspace_test.js to a helper file.
* Update test deps after rebase
Co-authored-by: Christopher Allen <cpcallen+git@google.com >
2021-09-16 13:00:38 -07:00
Aaron Dodson
355c54f70a
Use captureWarning helper from dev-tools instead of mocha/test_helpers.js implementation.
2021-06-15 19:10:13 +00:00
Monica Kozbial
6e39d2f2e2
Capture expected warning in registry test. ( #4201 )
2020-08-20 13:57:21 -07:00
Monica Kozbial
2e92123314
Adding async cleanup to tests ( #4103 )
...
* Adding setup and teardown to more mocha tests.
* Update workspace dispose cleanup calls.
2020-08-05 16:00:00 -07:00
alschmiedt
00df97a59d
Add plugin options ( #3922 )
...
* Adds a plugin through options
* Fix requires
* Fix pr comments
2020-05-29 13:22:25 -07:00
alschmiedt
61054ee55a
Registry ( #3914 )
...
Create a global registry that fields, renderers and future objects can use
2020-05-26 11:21:42 -07:00