Skip to content

WorkBuddy、CodeBuddy 桌面端增强助手:签到猫猫旅行成长计划查询、多账号独立备份、点切即用;免打扰模式让 AI 无人值守跑长任务;跨账号会话迁移、异常中断自动续接;暂存/快捷提示词;毛玻璃主题与更多实用功能。

944 B
Raw Blame
'use strict';

const assert = require('node:assert/strict');
const fs = require('node:fs');
const path = require('node:path');
const test = require('node:test');

test('the obsolete selection quote enhancement switch is removed', () => {
  const inject = fs.readFileSync(path.join(__dirname, '..', 'scripts', 'inject.js'), 'utf8');
  assert.doesNotMatch(inject, /id="wbs-sess-selection-quote"/);
  assert.doesNotMatch(inject, /<span class="wbs-nd-title">引用消息文本<\/span>/);
  assert.doesNotMatch(inject, /SELECTION_QUOTE_ENABLED_KEY/);
});

test('selection quote is delegated to WorkBuddy and WorkDaddy no longer injects a custom button', () => {
  const inject = fs.readFileSync(path.join(__dirname, '..', 'scripts', 'inject.js'), 'utf8');
  assert.doesNotMatch(inject, /function setupSelectionQuote\(\)/);
  assert.doesNotMatch(inject, /selectionQuoteButton/);
  assert.doesNotMatch(inject, /selection:\/\/document-selection/);
});