mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-12-18 19:01:47 +00:00
3481080251
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
10 lines
292 B
JavaScript
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' );
|
|
} );
|