test that version is included as HTML meta tag
This commit is contained in:
parent
db038b1e57
commit
c13d55ec01
1 changed files with 13 additions and 0 deletions
13
tests/acceptance/build-info-test.js
Normal file
13
tests/acceptance/build-info-test.js
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
import { test } from 'qunit';
|
||||||
|
import moduleForAcceptance from 'croodle/tests/helpers/module-for-acceptance';
|
||||||
|
|
||||||
|
moduleForAcceptance('Acceptance | build info');
|
||||||
|
|
||||||
|
test('version is included as html meta tag', function(assert) {
|
||||||
|
visit('/');
|
||||||
|
|
||||||
|
andThen(function() {
|
||||||
|
assert.ok($('head meta[name="build-info"]'), 'tag exists');
|
||||||
|
assert.ok($('head meta[name="build-info"]').match(/^version=v\d[\d\.]+\d(\+[\da-z]{7})?$/) !== null, 'format is correct');
|
||||||
|
});
|
||||||
|
});
|
Loading…
Reference in a new issue