Closed
Description
Description
Function call na.'double'()
from a generated test has extra apostrophes.
To Reproduce
- Install the latest IU plugin built from unit-test-bot/rc3102023 branch in IntelliJ Idea Ultimate 2022.2.4 - take
utbot-intellij-IU-2023.3.*
artefact - Create a JavaScript project with sample code
- Copy samples folder from
utbot-js
module and paste it into this project - Generate tests for Na.double() function in
samples/scenarioMultyClassNoTopLevel.js
Expected behavior
Function calls in the generated tests are supposed to be correctly rendered and compillable.
Expected - compiling, test passes with this code:
na.double()
Actual behavior
Function call na.'double'()
from a generated test has extra apostrophes.
Actual piece of code:
na.`double`()
Visual proofs (screenshots, logs, images)
The following test is generated:
const fileUnderTest = require("./../samples/scenarioMultyClassNoTopLevel.js")
const assert = require("assert")
///region Test suites for executable Na.double
///region
it("testDouble1", function ()
{
let na = new fileUnderTest.Na("\n\t\n")
let actual = na.`double`()
assert.deepEqual(0, actual)
}
)
///endregion
///endregion
Environment
Windows 10
Additional context
The function expects a number, but it is given a String.
Metadata
Metadata
Assignees
Type
Projects
Status
Done