mirror of
https://github.com/github/awesome-copilot.git
synced 2026-08-12 20:29:12 +00:00
chore: publish from main
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { test } from "node:test";
|
||||
import { isReusableExtensionRegistered } from "./validate-plugins.mjs";
|
||||
|
||||
test("accepts a reusable extension bundled only by a parent plugin", () => {
|
||||
assert.equal(
|
||||
isReusableExtensionRegistered(
|
||||
"daily-focus-board",
|
||||
new Set(["ember"]),
|
||||
new Set(["daily-focus-board"])
|
||||
),
|
||||
true
|
||||
);
|
||||
});
|
||||
|
||||
test("accepts a same-named standalone extension plugin", () => {
|
||||
assert.equal(
|
||||
isReusableExtensionRegistered(
|
||||
"daily-focus-board",
|
||||
new Set(["daily-focus-board"]),
|
||||
new Set()
|
||||
),
|
||||
true
|
||||
);
|
||||
});
|
||||
|
||||
test("rejects an orphaned reusable extension", () => {
|
||||
assert.equal(
|
||||
isReusableExtensionRegistered(
|
||||
"daily-focus-board",
|
||||
new Set(["ember"]),
|
||||
new Set()
|
||||
),
|
||||
false
|
||||
);
|
||||
});
|
||||
Reference in New Issue
Block a user