Debian Codegraph @

tests/api-testing/REST/PageLegacy.js

raw symbols SCIP
1 'use strict';
2
3 describe( 'legacy Page Source', () => {
4 // Cache deletion ensures tests will execute for both legacy and module paths
5 // Doing this twice protects against changes in test execution order
6 const testsFile = __dirname + '/content.v1/Page.js';
7 delete require.cache[ testsFile ];
8 require( testsFile ).init( 'rest.php/v1' );
9 delete require.cache[ testsFile ];
10 } );