allow alpha / beta / rc releases

This commit is contained in:
jelhan 2016-03-18 13:15:32 +01:00
parent 40d81ab8c1
commit 9a658ab76d

View file

@ -9,7 +9,7 @@ test('version is included as html meta tag', function(assert) {
andThen(function() {
assert.ok($('head meta[name="build-info"]').length === 1, 'tag exists');
assert.ok(
$('head meta[name="build-info"]').attr('content').match(/^version=v\d[\d\.]+\d(\+[\da-z]{8})?$/) !== null,
$('head meta[name="build-info"]').attr('content').match(/^version=v\d[\d\.]+\d(-(alpha|beta|rc)\d)?(\+[\da-z]{8})?$/) !== null,
'format '.concat($('head meta[name="build-info"]').attr('content'), ' is correct')
);
});