Skip to content

Conversation

@rjrudin
Copy link
Contributor

@rjrudin rjrudin commented Oct 30, 2025

No description provided.

Copilot AI review requested due to automatic review settings October 30, 2025 15:16
@github-actions
Copy link

Copyright Validation Results
Total: 2 | Passed: 2 | Failed: 0 | Skipped: 0 | at: 2025-10-30 15:16:22 UTC | commit: a391987

✅ Valid Files

  • test-complete/nodejs-dmsdk-queryToTransformAll.js
  • test-complete/nodejs-documents-read-chunk.js

✅ All files have valid copyright headers!

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds assertion checks in test files to verify the existence and type of response objects before accessing their properties, improving test robustness and preventing potential null reference errors.

Key Changes:

  • Added existence checks for response objects in binary document tests
  • Added existence and type validation for documents array in data movement transformation tests

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
test-complete/nodejs-documents-read-chunk.js Added existence check for response object before property access
test-complete/nodejs-dmsdk-queryToTransformAll.js Added existence and array type checks for documents object

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

async function verifyDocs(value) {
const documents = await dbWriter.documents.read(uris).result();
should.exist(documents);
documents.should.be.an.Array();
Copy link

Copilot AI Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The correct assertion syntax is documents.should.be.an('array') (lowercase string) or documents.should.be.an.instanceOf(Array). The current syntax documents.should.be.an.Array() is incorrect and will likely fail.

Suggested change
documents.should.be.an.Array();
documents.should.be.an('array');

Copilot uses AI. Check for mistakes.
@rjrudin rjrudin merged commit 2d0b4d8 into develop Oct 30, 2025
3 checks passed
@rjrudin rjrudin deleted the feature/polaris-test-fixes branch October 30, 2025 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants