mediawiki-extensions-Math/modules/ve-math/tests/ve.dm.Autocomplete.test.js
physikerwelt (Moritz Schubotz) be9d701825
Add JS unit test
Add a first test to check that the testing framework is functional.

Bug: T288074
Change-Id: If4a6d14f14d7b964db31781b3caf23eb383c06c1
2021-08-05 09:54:10 +02:00

13 lines
386 B
JavaScript

QUnit.module( 've.dm.Autocomplete (Math)', ve.test.utils.mwEnvironment );
QUnit.test( 'Autocomplete list', function ( assert ) {
assert.notStrictEqual(
ve.ui.MWMathDialog.static.autocompleteWordList,
undefined,
'autocomplete list exists' );
assert.notEqual(
ve.ui.MWMathDialog.static.autocompleteWordList.indexOf( '\\alpha' ),
-1,
'autocomplete contains \\alpha' );
} );