fix: test that version is included as HTML meta tag
This commit is contained in:
parent
c13d55ec01
commit
70a3a6a4ab
1 changed files with 5 additions and 2 deletions
|
@ -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'
|
||||||
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue