0 votes
79 views
in General by (0 points)
closed by
Complete the code snippet to generate a passing test. const assert = require('assert"); const [ Given, When, Then ] = require('cucumber');

Given('that I start with [int]', function (int) { answer =int

When('I add [int], function (int) [ expected =answer+int;

Then('the result should be [int]', function (int) [ <missing code>

D):
closed

1 Answer

0 votes
by (0 points)
 
Best answer
assert.equal(expected,int);

Related questions

2.8k questions

2.8k answers

0 comments

76 users

Welcome to MCQ Village Q&A, where you can ask questions and receive answers from other members of the community.
...