From ba317b87d8eb474a5cd9ecfc71605a5f1621b688 Mon Sep 17 00:00:00 2001 From: Michael Shaffer Date: Thu, 29 Sep 2016 09:51:42 -0700 Subject: [PATCH] Updated the Instructions for Including the Gherkin Expressions This commit updates the instructions in the README.md for how to leverage the Gherkin Expressions in a project. --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1a54b40..0cb36c3 100644 --- a/README.md +++ b/README.md @@ -261,10 +261,11 @@ THEN: I store the value of body path (.*) as (.*) in global scope ``` -The simplest way to adopt these expressions is to create a symlink from node_modules/apickli/apickli-gherkin.js to test/features/step_definitions/apickli-gherkin.js +The simplest way to adopt these expressions is to create a file named apickli-gherkin.js in features/step_definitions and extend the apickli/gherkin.js module. -```sh -$ ln -s ../../../node_modules/apickli/apickli-gherkin.js test/features/step_definitions/apickli-gherkin.js +add the following to test/features/step_definitions/apickli-gherkin.js +```javascript +module.exports = require('apickli/apickli-gherkin'); ``` If using Windows, follow this guide to create a symlink: [How-To Geek Guide](http://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/).