1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix up version tests to handle tagged releases

This commit is contained in:
Nick O'Leary 2018-09-21 14:06:16 +01:00
parent e73bf03615
commit d5ffd1432f
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -78,7 +78,7 @@ describe("runtime", function() {
it("returns version", function() {
runtime.init({testSettings: true, httpAdminRoot:"/"},mockUtil());
return runtime.version().then(version => {
/^\d+\.\d+\.\d+(-git)?$/.test(version).should.be.true();
/^\d+\.\d+\.\d+(-.*)?$/.test(version).should.be.true();
});