You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
461 B
JavaScript
11 lines
461 B
JavaScript
import assert from "node:assert/strict";
|
|
import { buildReferencePrompt } from "../src/views/components/studentTrainingAiPanel.js";
|
|
|
|
assert.equal(
|
|
buildReferencePrompt("先从案例中拆出核心层、有形层、延伸层。"),
|
|
"请根据以下参考提示词协助我完成当前任务:\n先从案例中拆出核心层、有形层、延伸层。"
|
|
);
|
|
assert.equal(buildReferencePrompt(""), "");
|
|
|
|
console.log("student training AI panel contract passed");
|