clean up deprecated buttons

This commit is contained in:
Pierre committed 2026-10-04 13:43:50 +02:00
1 parent 99422d8cfc
commit 5614ad049d
12 files changed
+36 -161

No files matched your search

+2 -5
View File
@@ -61,20 +61,17 @@ test('groups plain app.log lines between explicit initialization markers',()=>{
assert.equal(grouped[2].group_inferred,undefined);
});
test('clears configured live files, keeps imported archives, and updates the log error count',()=>{
test('clears configured log files and updates the log error count',()=>{
const counts=[];const e=new LogExplorer({},count=>counts.push(count));
messages=[];const webview={postMessage:m=>messages.push(m)};e.panel={webview};e.activeWebview=webview;
const errorFile=path.join(root,'logs/error.log');
const archive=path.join(root,'logs/history.log.1');
fs.writeFileSync(file,'27-09-26 10:12:13 ERROR app: failed\n');
fs.writeFileSync(errorFile,'27-09-26 10:12:13 ERROR app: failed\n');
fs.writeFileSync(archive,'27-09-26 10:12:14 INFO app: archived\n');
e.imported.add(archive);e.poll();
e.poll();
assert.equal(counts.at(-1),1);
e.clearLogs();
assert.equal(fs.statSync(file).size,0);
assert.equal(fs.statSync(errorFile).size,0);
assert.match(fs.readFileSync(archive,'utf8'),/archived/);
assert.equal(counts.at(-1),0);
assert.deepEqual(messages.filter(message=>message.type==='entries').at(-1).entries,[]);
fs.appendFileSync(file,'27-09-26 10:12:15 CRITICAL app: new failure\n');e.poll();