Professional Documents
Culture Documents
CONTAINER_REQUEST_COUNT: 0
2024-03-18 08:11:01,277 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO
Fetching me assessment
2024-03-18 08:11:01,277 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO ME
Assessment fetched - {'meId': 'ME_ES6_FUNCTIONALPROGRAMMING', 'stages':
[<BuildStageType.BUILD_STAGE_TYPE_SETUP: 'setup'>,
<BuildStageType.BUILD_STAGE_TYPE_UNIT_TESTING: 'unitTesting'>],
'assessmentEndpoint': 'https://me-es6-functionalprogramming-prod-nnjjst7g5q-
uc.a.run.app/', 'fargateTaskDefinition': None, 'meFolder': 'me_es6',
'runInIsolation': False}
2024-03-18 08:11:01,280 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO
Starting assessment
2024-03-18 08:11:01,806 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO Running
assessment stage setup
2024-03-18 08:11:01,806 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO
{'buildId': '0405f578-6b8e-41a6-a6ac-26f1777bac03', 'userId': 'arbaazmakandar',
'cohortId': 'COHORT_ME_ES6_FUNCTIONALPROGRAMMING_ENROLL_1684835199422', 'meId':
'ME_ES6_FUNCTIONALPROGRAMMING', 'moduleId':
'ME_ES6_FUNCTIONALPROGRAMMING_MODULE_JOINMETHODES6', 'buildType':
'BUILD_TYPE_SUBMIT', 'assessmentType': 'ASSESSMENT_TYPE_UNTIMED', 'questionId':
'QUESTION_JoinMethodES6', 'psDsContext': {'codeId': 70121561, 'inputs': [],
'codeData': {'code': '/**\n * @param {string} str\n * @return {string}\n */\n\n\
nfunction sentensify(str) {\n // You only need to implement this function.\n let
newStr= str.split(\'-\');\n newStr= str.split(\'.\');\n newStr=
str.split(\',\');\n \n return newStr.join(" ");\n}\n\nif (sentensify("May-the-
force-be-with-you") !== "May the force be with you")\n console.log(\n "Test
fails: Expected true for input str = \'May-the-force-be-with-you\'"\n );\nelse
console.log(\n "Sample test case for input str = \'May-the-force-be-with-you\'
passed!"\n);\n\nmodule.exports = sentensify;\n\n', 'languageType':
'LANGUAGE_TYPE_JAVASCRIPT'}}, 'timestampInMs': 1710749460940, 'meAssessment':
{'meId': 'ME_ES6_FUNCTIONALPROGRAMMING', 'stages':
[<BuildStageType.BUILD_STAGE_TYPE_SETUP: 'setup'>,
<BuildStageType.BUILD_STAGE_TYPE_UNIT_TESTING: 'unitTesting'>],
'assessmentEndpoint': 'https://me-es6-functionalprogramming-prod-nnjjst7g5q-
uc.a.run.app/', 'fargateTaskDefinition': None, 'meFolder': 'me_es6',
'runInIsolation': False}, 'workingDir': '//arbaazmakandar-
ME_ES6_FUNCTIONALPROGRAMMING-0405f578-6b8e-41a6-a6ac-26f1777bac03'}
2024-03-18 08:11:01,807 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO Getting
user data...
2024-03-18 08:11:01,807 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO
Received user data in 1.9311904907226562e-05 seconds
console.log
Test fails: Expected true for input str = 'May-the-force-be-with-you'
at Object.log (solution.js:17:11)
FAIL __tests__/solution.tests.js
✕ Input: The.force.is.strong.with.this.one Output: The force is strong with this
one (7 ms)
✓ Input: There,has,been,an,awakening Output: There has been an awakening
✓ Input: madam Output: madam
✓ Input: learn Output: learn
9 |
10 | test("Input: The.force.is.strong.with.this.one Output: The force is
strong with this one", () => {
> 11 | expect(sentensify("The.force.is.strong.with.this.one")).toStrictEqual(
| ^
12 | "The force is strong with this one"
13 | );
14 | });
at Object.toStrictEqual (__tests__/solution.tests.js:11:59)