Skip to content

emilioplatzer/audit-copy

Repository files navigation

audit-copy

copy a JS Object for latter audit and detect modifications

designing npm-version downloads build build coverage dependencies

language: English also available in: Spanish

Install

$ npm install audit-copy

Usage

var auditCopy = require('audit-copy');
// ...

// in test:
it("call f without touching first param", ()=>{
    var auditCopyParam = auditCopy.inObject(param);
    f(param);
    assert.deepStrictEqual(auditCopyParam, auditCopy.inObject(param));
})

License

MIT

About

copy a JS Object for latter audit and detect modifications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published