Update the browser, editor, settings, and installer
This commit is contained in:
@@ -23,6 +23,10 @@ test("plugin packaging rejects invalid release inputs before writing an archive"
|
||||
for (const [changes, message] of [
|
||||
[{ id: "../escape" }, /ID is invalid/],
|
||||
[{ version: "1.0" }, /version such as/],
|
||||
[{ version: "1.0.0A" }, /version such as/],
|
||||
[{ version: "1.0.0a1" }, /version such as/],
|
||||
[{ version: "1.0.0-beta" }, /version such as/],
|
||||
[{ version: "1.0.0+build" }, /version such as/],
|
||||
[{ entry: "../main.js" }, /compiled JavaScript/],
|
||||
[{ apiVersion: 99 }, /Unsupported/],
|
||||
[{ author: "" }, /valid author/],
|
||||
@@ -40,6 +44,13 @@ test("plugin packaging rejects invalid release inputs before writing an archive"
|
||||
const first = await readFile(path);
|
||||
await packagePlugin(source, output);
|
||||
assert.deepEqual(await readFile(path), first);
|
||||
for (const version of ["0.2.28a", "0.2.28b", "0.2.28aa"]) {
|
||||
await save({ version });
|
||||
const hotfix = await packagePlugin(source, output);
|
||||
assert.equal(hotfix, join(await realpath(output), `org.test.demo-${version}.zip`));
|
||||
assert.ok((await readFile(hotfix)).length > 0);
|
||||
assert.deepEqual(await readFile(path), first);
|
||||
}
|
||||
} finally {
|
||||
// mkdtemp returns this test's unique directory under the operating system temp folder.
|
||||
assert.equal(root.startsWith(join(tmpdir(), "runestone-packaging-")), true);
|
||||
|
||||
Reference in New Issue
Block a user