mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 03:30:44 +00:00
test: tighten assertions and harness coverage
This commit is contained in:
@@ -110,7 +110,7 @@ describe("git commit resolution", () => {
|
||||
expect(resolveCommitHash({ moduleUrl: entryModuleUrl })).not.toBe(otherHead);
|
||||
});
|
||||
|
||||
it("prefers live git metadata over stale build info in a real checkout", async () => {
|
||||
it("prefers live git metadata over stale build info in a real checkout", () => {
|
||||
const repoHead = execFileSync("git", ["rev-parse", "--short=7", "HEAD"], {
|
||||
cwd: repoRoot,
|
||||
encoding: "utf-8",
|
||||
@@ -175,7 +175,7 @@ describe("git commit resolution", () => {
|
||||
expect(readPackageJsonCommit.mock.calls.length).toBe(firstCallRequires);
|
||||
});
|
||||
|
||||
it("treats invalid moduleUrl inputs as a fallback hint instead of throwing", async () => {
|
||||
it("treats invalid moduleUrl inputs as a fallback hint instead of throwing", () => {
|
||||
const repoHead = execFileSync("git", ["rev-parse", "--short=7", "HEAD"], {
|
||||
cwd: repoRoot,
|
||||
encoding: "utf-8",
|
||||
|
||||
Reference in New Issue
Block a user