From 15e5e413d9a49012202c46f8fde747c1593ec0f1 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sat, 10 Nov 2018 20:06:38 +0100 Subject: Add code --- 4outline/features/steps/concat.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 4outline/features/steps/concat.js (limited to '4outline/features/steps/concat.js') diff --git a/4outline/features/steps/concat.js b/4outline/features/steps/concat.js new file mode 100644 index 0000000..45cb7e2 --- /dev/null +++ b/4outline/features/steps/concat.js @@ -0,0 +1,14 @@ +import { Given, When, Then } from 'cucumber' +import { expect } from 'chai' + +Given('the start value is {string}', function (string) { + this.concat = string +}) + +When('I concatenate {string}', function (string) { + this.concat += ' ' + string +}) + +Then('the result should be {string}', function (string) { + expect(string).to.equal(this.concat) +}) -- cgit v1.2.3