进行了小优化
This commit is contained in:
@@ -9,7 +9,7 @@ const read = (file) => fs.readFileSync(path.join(root, file), 'utf8')
|
||||
const templates = read('src/Settings/MailTemplates.php')
|
||||
const mail = read('src/Settings/Mail.php')
|
||||
const notifications = read('src/Settings/MailNotifications.php')
|
||||
const coreHooks = read('inc/core-hooks/part-2.php')
|
||||
const coreHooks = read('inc/core-hooks.php')
|
||||
const globalController = read('src/Admin/GlobalController.php')
|
||||
const userController = read('src/Admin/UserController.php')
|
||||
const settings = read('src/Settings/Settings.php')
|
||||
|
||||
@@ -13,7 +13,7 @@ test('paid article and sidebar widget use the Zibll purchase-card DOM', () => {
|
||||
const widget = read('src/WidgetSystem/Renderers/ContentRenderer.php');
|
||||
const shell = read('src/WidgetSystem/FrontendRenderer.php');
|
||||
const single = read('inc/helpers/aksrt-single-render.php');
|
||||
const hooks = read('inc/core-hooks/part-3.php');
|
||||
const hooks = read('inc/core-hooks.php');
|
||||
|
||||
assert.match(pay, /zib-widget pay-box pay-widget/);
|
||||
assert.match(pay, /zib-widget pay-box order-type-/);
|
||||
|
||||
@@ -340,7 +340,7 @@ test('AJAX pagination can recover, caps auto loading and rehydrates appended med
|
||||
});
|
||||
|
||||
test('front-end carousel CSS is conditional on carousel block content', () => {
|
||||
const hooks = read('inc/core-hooks/part-3.php');
|
||||
const hooks = read('inc/core-hooks.php');
|
||||
assert.match(hooks, /has_block\('aksrt\/carousel', \$post\)/);
|
||||
assert.match(hooks, /if \(!\$has_carousel\) return;[\s\S]*?'aksrt-gutenberg-blocks-front'/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user