node.js - Zombie.js testing framework, write to a file -
i have not found yet being able write file zombie.js.
realize js doesn't allow writing files, possible combine node.js zombie.js?
does know if it's @ possible write file zombie.js framework?
i'm attempting dump contents of html page when test fails, won't around see fail.
since zombie.js built on node.js, can use node fs module @jim schubert suggested.
fs.writefile('message.txt', 'hello node', function (err) { if (err) throw err; console.log('it\'s saved!'); });
Comments
Post a Comment