15 lines · 523 B · TypeScript
RawDownload
import { describe, expect, it } from "vite-plus/test"; import { fileContentRevision, projectFileCacheKey } from "./fileContentRevision"; describe("fileContentRevision", () => {  it("changes for same-length edits", () => {    expect(fileContentRevision("nodeVersion")).not.toBe(fileContentRevision("nodeVeasdrs"));  });   it("keeps identical contents stable", () => {    expect(projectFileCacheKey("/repo", "file.json", "contents")).toBe(      projectFileCacheKey("/repo", "file.json", "contents"),    );  });});

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t