Page MenuHomeWickedGov Phorge

popupTest.js
No OneTemporary

Size
788 B
Referenced Files
None
Subscribers
None

popupTest.js

'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

Mime Type
text/plain
Expires
Fri, Jul 3, 16:42 (9 h, 5 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a1/a4/28e9b16636fc8f1c3ce244058f2d
Default Alt Text
popupTest.js (788 B)

Event Timeline