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:
parent
e73bf03615
commit
d5ffd1432f
@ -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();
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user