Skip to content

Add tests for fs.writeFile to increase coverage #628

Open
@humphd

Description

@humphd

We have a few branches in fs.writeFile that aren't being tested: https://codecov.io/gh/filerjs/filer/src/master/src/filesystem/implementation.js#L1850. To fix this, we need a few more tests added:

  • test that passes invalid flags to options.flags (i.e., doesn't include w)
  • test that passes a number for the data argument to write, and expects to have it written as a string.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions