mediawiki-extensions-Math/modules/ve-math/tests/ve.dm.Autocomplete.test.js
Ed Sanders 94d6b81d2f tests: Use ve.test.utils.newMwEnvironment()
Depends-On: Ib20c1f5277c5d5a99f5117c82b7cbdeab75d3279
Change-Id: Id551b4c8ae3a857f1318d4b7f5e5518c889bc9d2
2022-03-04 13:52:59 +00:00

13 lines
397 B
JavaScript

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