mediawiki-extensions-Math/modules/ve-math/tests/ve.dm.Autocomplete.test.js
Ed Sanders a5e976baee build: Update eslint-config-wikimedia to 0.21.0
Change-Id: Ia97b44767e31fe1c2d075e3627c7f7bea0845751
2021-11-15 16:27:57 +00:00

13 lines
392 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.notStrictEqual(
ve.ui.MWMathDialog.static.autocompleteWordList.indexOf( '\\alpha' ),
-1,
'autocomplete contains \\alpha' );
} );