Page MenuHomeWickedGov Phorge

hide.tests.js
No OneTemporary

Size
479 B
Referenced Files
None
Subscribers
None

hide.tests.js

const hide = mw.centralNotice.internal.hide;
QUnit.module( 'mw.centralNotice.internal.hide' );
QUnit.test( 'fetchHideUrls', ( assert ) => {
let imgs = hide.fetchHideUrls( [], 100, 'category', 'a good reason' );
assert.strictEqual( imgs.length, 0, 'No requests generated' );
imgs = hide.fetchHideUrls(
[
'/foo/relative', 'https://en.wikipedia.org/img.gif'
],
100,
'category',
'a good reason'
);
assert.strictEqual( imgs.length, 2, 'Requests generated' );
} );

File Metadata

Mime Type
text/plain
Expires
Fri, Jul 3, 18:43 (1 d, 14 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
fd/a9/b1e17cf93f8d62874eddfc7c02ad
Default Alt Text
hide.tests.js (479 B)

Event Timeline