Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: tutorial #288

Open
fbraza opened this issue Feb 10, 2021 · 0 comments
Open

docs: tutorial #288

fbraza opened this issue Feb 10, 2021 · 0 comments

Comments

@fbraza
Copy link
Contributor

fbraza commented Feb 10, 2021

Sergei,

Regarding the questions I sent you I opened an issue to keep track of the discussion and let you decide if these make sense:

  • Being pretty newbie with JS it was not directly clear to me that I needed to require nikita first. I found it out quickly. Maybe just a mention of it in the text may be needed.

  • In the External actions part you have this code:

// Dependencies
const assert = require('assert');
(async () => {
  // New Nikita session
  var {status} = await nikita.call('./lib/touch')
  assert.equal(status, true)
})()

Using the code as it is does not work. As pointed out by Sergei we need to add a require statement for the path

// Dependencies
const assert = require('assert');
(async () => {
  // New Nikita session
  var {status} = await nikita.call(require('./lib/touch'))
  assert.equal(status, true)
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant