瀏覽代碼

fix(test): make plugin loader theme source path separator-safe (#22870)

Dax 6 月之前
父節點
當前提交
9afbdc102c
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      packages/opencode/test/cli/tui/plugin-loader.test.ts

+ 1 - 1
packages/opencode/test/cli/tui/plugin-loader.test.ts

@@ -331,7 +331,7 @@ export default {
     const localOpts = {
       fn_marker: tmp.extra.fnMarker,
       marker: tmp.extra.localMarker,
-      source: tmp.extra.localDest.replace(".opencode/themes/", ""),
+      source: path.join(tmp.path, tmp.extra.localThemeFile),
       dest: tmp.extra.localDest,
       theme_path: `./${tmp.extra.localThemeFile}`,
       theme_name: tmp.extra.localThemeName,