Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F2751512
hide.tests.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
479 B
Referenced Files
None
Subscribers
None
hide.tests.js
View Options
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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment