Update editor, themes, menus, backgrounds, and release tooling
This commit is contained in:
@@ -39,11 +39,16 @@ test("plugin packaging rejects invalid release inputs before writing an archive"
|
||||
await writeFile(join(source, "invalid file.txt"), "test");
|
||||
await assert.rejects(packagePlugin(source, output), /Invalid package path/);
|
||||
await rm(join(source, "invalid file.txt"));
|
||||
const path = await packagePlugin(source, output);
|
||||
await writeFile(join(root, "package.json"), JSON.stringify({ name: "test-plugin" }));
|
||||
const path = await packagePlugin(source);
|
||||
assert.equal(path, join(await realpath(output), "org.test.demo-1.0.0.zip"));
|
||||
const first = await readFile(path);
|
||||
await packagePlugin(source, output);
|
||||
assert.deepEqual(await readFile(path), first);
|
||||
await writeFile(join(source, "main.js"), "export function activate() { return 1; }");
|
||||
await assert.rejects(packagePlugin(source), /different contents/);
|
||||
assert.deepEqual(await readFile(path), first);
|
||||
await writeFile(join(source, "main.js"), "export function activate() {}");
|
||||
for (const version of ["0.2.28a", "0.2.28b", "0.2.28aa"]) {
|
||||
await save({ version });
|
||||
const hotfix = await packagePlugin(source, output);
|
||||
|
||||
Reference in New Issue
Block a user