Skip to content

Commit 150b485

Browse files
srinathgitMarkLogic Builder
authored andcommitted
DHFPROD-7699:Logging more information for 'findEntityIdentifiers' test
1 parent e4e2e5c commit 150b485

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

marklogic-data-hub/src/test/ml-modules/root/test/suites/data-hub/5/impl/entity-lib/findEntityIdentifiers.sjs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ const entityType = "http://marklogic.com/example/PersonModel-0.0.1/Person";
77
const results = [];
88

99
const resultsPassingArray = entityLib.findEntityIdentifiers(uris, entityType);
10-
results.push(test.assertEqual("123-45-6789", resultsPassingArray[uris[0]], "Should find the correct identifier for person1"));
11-
results.push(test.assertEqual("987-65-4321", resultsPassingArray[uris[1]], "Should find the correct identifier for person2"));
10+
11+
results.push(test.assertEqual("123-45-6789", resultsPassingArray[uris[0]], `Should find the correct identifier for person1: ${JSON.stringify(resultsPassingArray)}`));
12+
results.push(test.assertEqual("987-65-4321", resultsPassingArray[uris[1]], `Should find the correct identifier for person2: ${JSON.stringify(resultsPassingArray)}`));
1213

1314
const resultsPassingSequence = entityLib.findEntityIdentifiers(Sequence.from(uris), entityType);
14-
results.push(test.assertEqual("123-45-6789", resultsPassingSequence[uris[0]], "Should find the correct identifier for person1"));
15-
results.push(test.assertEqual("987-65-4321", resultsPassingSequence[uris[1]], "Should find the correct identifier for person2"));
15+
results.push(test.assertEqual("123-45-6789", resultsPassingSequence[uris[0]], `Should find the correct identifier for person1: ${JSON.stringify(resultsPassingSequence)}`));
16+
results.push(test.assertEqual("987-65-4321", resultsPassingSequence[uris[1]], `Should find the correct identifier for person2: ${JSON.stringify(resultsPassingSequence)}`));
1617

1718
const resultsPassingSingleValue = entityLib.findEntityIdentifiers(uris[0], entityType);
18-
results.push(test.assertEqual("123-45-6789", resultsPassingSingleValue[uris[0]], "Should find the correct identifier for person1"));
19+
results.push(test.assertEqual("123-45-6789", resultsPassingSingleValue[uris[0]], `Should find the correct identifier for person1: ${JSON.stringify(resultsPassingSingleValue)}`));
1920

20-
results;
21+
results;

0 commit comments

Comments
 (0)