Skip to content

Commit fb28306

Browse files
committed
test: verify metadata exports match package.json values
Signed-off-by: leocavalcante <[email protected]>
1 parent 5173601 commit fb28306

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/index.test.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,15 @@ describe("index.ts exports", () => {
1414
expect(DefaultExport).toBe(OpenCoderPlugin)
1515
})
1616

17-
it("should export the plugin name from package.json", () => {
18-
expect(name).toBe("opencode-plugin-opencoder")
17+
it("should export name matching package.json", () => {
1918
expect(name).toBe(pkg.name)
2019
})
2120

22-
it("should export the version from package.json", () => {
23-
expect(version).toMatch(/^\d+\.\d+\.\d+/)
21+
it("should export version matching package.json", () => {
2422
expect(version).toBe(pkg.version)
2523
})
2624

27-
it("should export a description from package.json", () => {
28-
expect(description).toContain("autonomous")
25+
it("should export description matching package.json", () => {
2926
expect(description).toBe(pkg.description)
3027
})
3128

0 commit comments

Comments
 (0)