aboutsummaryrefslogtreecommitdiffstats
path: root/tests/api-testing/REST/UpdateLegacy.js
blob: 5e49b2d8f5f46ac58a3a86fe8c4ee3bfa8ee33b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
'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( '/v1', '/-' );
	delete require.cache[ testsFile ];
} );