Add support for prerelease versions

This commit is contained in:
Simon Warta 2020-03-07 11:30:38 +01:00
parent 5309e460b8
commit c7c1002c3d

View File

@ -320,7 +320,7 @@ describe("RestClient", () => {
build_tags: "netgo,ledger",
}),
);
expect(application_version.version).toMatch(/^0\.7\.[0-9]+$/);
expect(application_version.version).toMatch(/^0\.7\.[0-9]+(-[a-zA-Z0-9._]+)?$/);
expect(application_version.commit).toMatch(tendermintShortHashMatcher);
expect(application_version.go).toMatch(/^go version go1\.[0-9]+\.[0-9]+ linux\/amd64$/);
});