From 4c139652214a9c897c465f82d21be055ab6e82e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Vanzuita?= Date: Sun, 15 Mar 2020 11:21:40 +0100 Subject: [PATCH 1/2] remove let, add const --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fff23040f..7bf49cae4 100644 --- a/README.md +++ b/README.md @@ -182,13 +182,13 @@ In case you need to return a value from a webpage and use it directly in test, y They are expected to be used inside async/await functions, and their results will be available in test: ```js -let assert = require('assert'); +const assert = require('assert'); Feature('CodeceptJS Demonstration'); Scenario('test page title', async (I) => { I.amOnPage('http://simple-form-bootstrap.plataformatec.com.br/documentation'); - let title = await I.grabTitle(); + const title = await I.grabTitle(); assert.equal(title, 'Example application with SimpleForm and Twitter Bootstrap'); }); ``` From cc601d19ac4f443b15c52e3650cd2f895b032730 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Vanzuita?= Date: Sun, 15 Mar 2020 11:21:58 +0100 Subject: [PATCH 2/2] fix import error --- lib/codecept.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/codecept.js b/lib/codecept.js index 32b62827c..1e4f202e3 100644 --- a/lib/codecept.js +++ b/lib/codecept.js @@ -6,7 +6,7 @@ const resolve = require('path').resolve; const container = require('./container'); const Config = require('./config'); -const event = require('../lib/event'); +const event = require('./event'); const runHook = require('./hooks'); const output = require('./output');