Skip to content

Commit 6c7bff1

Browse files
authored
fix tests (#7)
<!-- If this pull request closes an issue, please mention the issue number below --> Closes # <!-- Issue # here --> ## 💸 TL;DR <!-- What's the three sentence summary of purpose of the PR --> ## 📜 Details [Design Doc](<!-- insert Google Doc link here if applicable -->) [Jira](<!-- insert Jira link if applicable -->) <!-- Add additional details required for the PR: breaking changes, screenshots, external dependency changes --> ## 🧪 Testing Steps / Validation <!-- add details on how this PR has been tested, include reproductions and screenshots where applicable --> ## ✅ Checks <!-- Make sure your pr passes the CI checks and do check the following fields as needed - --> - [ ] CI tests (if present) are passing - [ ] Adheres to code style for repo - [ ] Contributor License Agreement (CLA) completed if not a Reddit employee
1 parent 5fc8e9c commit 6c7bff1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/docs/store/DocumentManagementService.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ describe('DocumentManagementService', () => {
100100
version,
101101
expect.arrayContaining([
102102
expect.objectContaining({ pageContent: validDocument.pageContent }),
103-
])
103+
]),
104+
expect.any(Array)
104105
);
105106
expect(results).toEqual(['Mocked search result']); // Expect mocked result
106107
});
@@ -132,7 +133,8 @@ describe('DocumentManagementService', () => {
132133
path: expect.arrayContaining(['Chapter 1', 'Section 1.1']),
133134
}),
134135
}),
135-
])
136+
]),
137+
expect.any(Array)
136138
);
137139

138140
// Verify search results preserve metadata

0 commit comments

Comments
 (0)