fix: test that version is included as HTML meta tag

This commit is contained in:
jelhan 2015-12-08 11:39:30 +01:00
parent c13d55ec01
commit 70a3a6a4ab

View file

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