summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/page/version.spec.js
blob: 6c1c741fae4639fac9ba31ab00518f16208cb999 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
describeComponent('page/version', function () {
  'use strict';
  beforeEach(function () {
    this.setupComponent('<div class="version">0.3.1-beta</div>');
  });


  describe('render version on the left nav bar', function () {
    it('should render commit sha and comm', function () {
      expect(this.$node.html()).toContain('version: ');
      expect(this.$node.html()).toContain('ago');
      expect(this.$node.html()).not.toContain('NaN');
    });
  });

});