Build
Build
CONTAINER_REQUEST_COUNT: 0
2024-03-18 08:12:22,280 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO
Fetching me assessment
2024-03-18 08:12:22,280 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f 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:12:22,281 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO
Starting assessment
2024-03-18 08:12:22,792 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO Running
assessment stage setup
2024-03-18 08:12:22,796 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO
{'buildId': 'e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f', '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': 70121698, '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': 1710749541943, '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-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f'}
2024-03-18 08:12:22,796 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO Getting
user data...
2024-03-18 08:12:22,797 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO
Received user data in 2.574920654296875e-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 (20 ms)
✓ Input: There,has,been,an,awakening Output: There has been an awakening (1 ms)
✓ Input: madam Output: madam (1 ms)
✓ Input: learn Output: learn (1 ms)
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)