mediawiki-extensions-Multim.../tests/qunit/mmv/mmv.lightboximage.test.js
Fomafix 3481080251 Improve variable declarations in JavaScript
Use the eslint rule
	"no-var": "error"
in resources/.eslintrc.json and in .eslintrc.json
to require the use of `const` and `let` instead of `var`.

Bug: T337102
Change-Id: I3b3d6d426966a97c13f62494443f62bd5b790920
2023-11-06 23:11:23 +00:00

10 lines
292 B
JavaScript

const { LightboxImage } = require( 'mmv' );
QUnit.module( 'mmv.lightboximage', QUnit.newMwEnvironment() );
QUnit.test( 'Sense test', function ( assert ) {
const lightboxImage = new LightboxImage( 'foo.png' );
assert.true( lightboxImage instanceof LightboxImage, 'Object created' );
} );