summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/page
diff options
context:
space:
mode:
authorZara Gebru <zgebru@thoughtworks.com>2016-04-15 11:27:01 +0200
committerZara Gebru <zgebru@thoughtworks.com>2016-04-15 11:31:25 +0200
commitf7b9384d261beaa70994340eb83d6b77ac6535af (patch)
treebdd6e97321d92987fdc1ae9f72eab3a89fe9635c /web-ui/test/spec/page
parentcd571f8542566a83e7f95e23859433e09b7df814 (diff)
Issue #678: added utility converting time passed and dynamically changing version timestamp
Diffstat (limited to 'web-ui/test/spec/page')
-rw-r--r--web-ui/test/spec/page/version.spec.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/web-ui/test/spec/page/version.spec.js b/web-ui/test/spec/page/version.spec.js
new file mode 100644
index 00000000..6c1c741f
--- /dev/null
+++ b/web-ui/test/spec/page/version.spec.js
@@ -0,0 +1,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');
+ });
+ });
+
+});