| 1 |
QUnit.module( 'mediawiki.api.upload', () => { |
| 2 |
|
| 3 |
QUnit.test( 'Basic functionality', ( assert ) => { |
| 4 |
const api = new mw.Api(); |
| 5 |
assert.strictEqual( typeof api.upload, 'function' ); |
| 6 |
assert.throws( () => { |
| 7 |
api.upload(); |
| 8 |
} ); |
| 9 |
} ); |
| 10 |
|
| 11 |
} ); |