Files
wordpress-theme-aksrt/tests/widget-system/comment-order-behavior.test.cjs
T
kate522 8aa116ec43 fix(theme): align reference layouts and restore passing contracts
Align homepage and category discovery, modern widgets, admin controls, quotes, and comments with the reference theme. Remove superseded paths and add rendering and behavior coverage. Update stale asset and finance contracts; all 760 Node tests and 139 widget assertions pass.
2026-10-29 19:16:03 +08:00

15 lines
546 B
JavaScript

'use strict';
const assert = require('node:assert/strict');
const { spawnSync } = require('node:child_process');
const path = require('node:path');
const test = require('node:test');
test('hottest query hook retains unliked comments and is query-local', () => {
const script = path.resolve(__dirname, 'comment-order-behavior.php');
const result = spawnSync('php', [script], { encoding: 'utf8' });
assert.equal(result.status, 0, result.stderr || result.stdout);
assert.match(result.stdout, /Hottest comment query behavior passed/);
});