assert-fs-resembles

0.1.0 • Public • Published

assert-fs-resembles

Assertion that check state of filesystem directory

A simple assertion module that compares an object passed in to the state of the current working directory. It's very useful when using fs-mock. Used successfully in mocha. It's pretty dumb still.

API is basically something like this:

assertFsResembles({
    mydir: {
        myfile: 'my file content'
    }
})

I wrote this for testing batch-file-renamer, please feel free to check out how I've used it in the tests for that.

Keywords

none

Install

npm i assert-fs-resembles

DownloadsWeekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • rohan_orton