Skip to content

Commit 426e9c2

Browse files
authored
Merge pull request #2218 from QwenLM/fix-test-assertion-trailing-newline
fix(test): use toContain instead of toBe for file content assertion
2 parents 983f448 + 377a4f1 commit 426e9c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

integration-tests/file-system.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ describe('file-system', () => {
139139
).toBeDefined();
140140

141141
const newFileContent = rig.readFile(fileName);
142-
expect(newFileContent).toBe('1.0.1');
142+
expect(newFileContent).toContain('1.0.1');
143143
});
144144

145145
it.skip('should replace multiple instances of a string', async () => {

0 commit comments

Comments
 (0)