1
0
Fork 0

Resolved version test error caused by verset commit

perfodd
Mike Gerwitz 2012-04-06 00:20:57 -04:00
parent bc44bfd8e9
commit 1b17900294
1 changed files with 7 additions and 1 deletions

View File

@ -63,7 +63,13 @@ require( 'common' ).testCase(
'Version string is available': function()
{
this.assertEqual( this.version.join( '.' ), this.version.toString(),
var v = this.version,
expected = v.major + '.' + v.minor + '.' + v.rev +
( v.suffix && ( '-' + v.suffix ) || '' )
;
this.assertEqual( expected, this.version.toString(),
'Version string should be made available'
);
},