added more tests

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2022-05-10 19:24:36 +03:00
1 parent e1d6c0183d
commit c6c72a0f11
1 file changed
+8
@@ -60,6 +60,14 @@ describe("Extension/App versions compatibility check", () => {
}))).toBeFalsy(); // extension with lens@5.5 is not compatible with app@6.0
});
it("is compatible with lensEngine with prerelease", () => {
expect(isCompatibleExtension({
appSemVer: semver.coerce("5.5.0-alpha.0"),
})(getExtensionManifestMock({
lensEngine: "^5.4.0-alpha.0",
}))).toBeTruthy();
});
describe("supported formats for manifest.engines.lens", () => {
it("short version format for engines.lens", () => {
expect(isCompatibleExtension({