Debian Codegraph @

tests/qunit/resources/mediawiki.inspect.test.js

raw symbols SCIP
1 QUnit.module( 'mediawiki.inspect', () => {
2
3 QUnit.test( '.getModuleSize() - scripts', ( assert ) => {
4 // Use eval so that the size doesn't change depending on minification
5 /* eslint-disable no-eval */
6 mw.loader.impl( eval( "(function(){return['test.inspect.script',function (){'example';}];})" ) );
7
8 return mw.loader.using( 'test.inspect.script' ).then( () => {
9 assert.strictEqual(
10 mw.inspect.getModuleSize( 'test.inspect.script' ),
11 66,
12 'test.inspect.script'
13 );
14 } );
15 } );
16 } );