wiki.techinc.nl/tests/api-testing/REST/UpdateLegacy.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
388 B
JavaScript
Raw Normal View History

'use strict';
describe( 'legacy PUT /page/{title}', () => {
// Cache deletion ensures tests will execute for both legacy and module paths
// Doing this twice protects against changes in test execution order
const testsFile = __dirname + '/content.v1/Update.js';
delete require.cache[ testsFile ];
require( testsFile ).init( 'rest.php/v1' );
delete require.cache[ testsFile ];
} );