Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4054630
popupTest.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
788 B
Referenced Files
None
Subscribers
None
popupTest.js
View Options
'use strict'
;
const
{
assert
,
REST
}
=
require
(
'api-testing'
);
describe
(
'Math popup endpoint test'
,
()
=>
{
const
client
=
new
REST
(
'rest.php/math/v0'
);
it
(
'should get a 400 response for bad value of hash param'
,
async
()
=>
{
const
{
status
,
body
}
=
await
client
.
get
(
'/popup/html/thebadvalue'
);
assert
.
strictEqual
(
status
,
400
);
assert
.
strictEqual
(
body
.
httpReason
,
'Bad Request'
);
assert
.
include
(
body
.
messageTranslations
.
en
,
'thebadvalue'
);
}
);
it
(
'should get a 400 response for a malformed item ID starting with Q'
,
async
()
=>
{
const
{
status
,
body
}
=
await
client
.
get
(
'/popup/html/Q1'
);
assert
.
strictEqual
(
status
,
400
);
assert
.
strictEqual
(
body
.
httpReason
,
'Bad Request'
);
assert
.
include
(
body
.
messageTranslations
.
en
,
'Q1'
);
}
);
}
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Aug 15 2026, 23:19 (12 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
3b/43/d66e1ffa3be8bab468bba4596e3e
Default Alt Text
popupTest.js (788 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment