From 790986e5e20a1f36b2664de64ed06687b8a65553 Mon Sep 17 00:00:00 2001 From: boryslevytskyi Date: Tue, 6 Jun 2017 22:10:32 +0300 Subject: [PATCH] Add guid test case to the spec --- src/app/appState.js | 6 +++--- src/app/commands.js | 4 +--- src/app/components/results/WhatsnewResultView.jsx | 6 +++++- tests/e2e/spec.js | 2 ++ 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/app/appState.js b/src/app/appState.js index 5b01d98..9e2a162 100644 --- a/src/app/appState.js +++ b/src/app/appState.js @@ -3,10 +3,10 @@ export default class AppState { this.emphasizeBytes = persistData.emphasizeBytes || true; this.commandResults = []; this.handlers = []; - this.uiTheme = persistData.uiTheme || 'dark'; + this.uiTheme = persistData.uiTheme || 'midnight'; this.debugMode = false; - this.version = 3; + this.version = 4; this.persistedVersion = persistData.version || 0.1; this.wasOldVersion = persistData.version && this.version > this.persistedVersion; } @@ -16,7 +16,7 @@ export default class AppState { this.triggerChanged(); } - clearCommmandResults() { + clearCommandResults() { this.commandResults = []; this.triggerChanged(); } diff --git a/src/app/commands.js b/src/app/commands.js index f93c0b5..1b28aa9 100644 --- a/src/app/commands.js +++ b/src/app/commands.js @@ -8,8 +8,6 @@ import StringResult from './models/StringResult'; import * as expression from './expression'; import uuid from 'uuid/v4'; -console.log(uuid); - var cmdConfig = {}; export default { @@ -20,7 +18,7 @@ export default { appState.addCommandResult(new HelpResult(c.input)); }, 'clear': function() { - appState.clearCommmandResults(); + appState.clearCommandResults(); }, 'em': function() { appState.toggleEmphasizeBytes(); diff --git a/src/app/components/results/WhatsnewResultView.jsx b/src/app/components/results/WhatsnewResultView.jsx index ae4916f..fdd571b 100644 --- a/src/app/components/results/WhatsnewResultView.jsx +++ b/src/app/components/results/WhatsnewResultView.jsx @@ -5,7 +5,11 @@ export default class WhatsnewResultView extends React.Component { render() { return

Changelog

-
+
+

Jun 6th, 2017
+ Added command. Use it for generating v4 GUIDs

+
+

May 27th, 2017
Added support of binary number notation (e.g. ).

diff --git a/tests/e2e/spec.js b/tests/e2e/spec.js index c2497d0..ec11dfa 100644 --- a/tests/e2e/spec.js +++ b/tests/e2e/spec.js @@ -40,6 +40,8 @@ describe('when application starts', function() { .then(function() { return sutPage.executeExpression('1|2&3|5 |5')}) .then(function() { return sutPage.executeExpression('dark')}) .then(function() { return sutPage.executeExpression('light')}) + .then(function() { return sutPage.executeExpression('midnight')}) + .then(function() { return sutPage.executeExpression('guid')}) .then(function() { return sutPage.shouldHaveNoErrors(); }); });