Skip to content

Commit

Permalink
fix: πŸ› refactor copyFile tests to be compatible w/ strictNullChecks
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jul 12, 2019
1 parent d06201e commit e318af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/__tests__/volume/copyFile.test.ts
Expand Up @@ -36,7 +36,7 @@ describe('copyFile(src, dest[, flags], callback)', () => {

vol.copyFile('/foo', '/bar', constants.COPYFILE_EXCL, (err, result) => {
expect(err).toBeInstanceOf(Error);
expect(err.message).toContain('EEXIST');
expect(err).toHaveProperty('message', expect.stringContaining('EEXIST'));
expect(result).toBe(undefined);

expect(vol.readFileSync('/foo', 'utf8')).toBe('hello world');
Expand Down

0 comments on commit e318af2

Please sign in to comment.