[IMP] web_editor: make mocha tests odoo modules
In order to be able to use web dependencies for mocha tests, convert every existing test to an `@odoo-module` and make a new asset `web_editor.mocha_tests` that will be used for tests in `/web_editor/tests` Task-2821374 Part-of: odoo/odoo#104680
This commit is contained in:
@@ -187,7 +187,7 @@
|
||||
<script src="/web_editor/static/src/js/editor/odoo-editor/test/lib/mocha.js"></script>
|
||||
<script src="/web_editor/static/src/js/editor/odoo-editor/test/lib/chai.js"></script>
|
||||
<script>mocha.setup('bdd').fullTrace()</script>
|
||||
<script src="/web_editor/static/src/js/editor/odoo-editor/test/editor-test.js" type="module"></script>
|
||||
<t t-call-assets="web_editor.mocha_tests"/>
|
||||
</t>
|
||||
<div id="mocha"></div>
|
||||
<div id="editor-test-container"></div>
|
||||
|
||||
Reference in New Issue
Block a user