A suite to track Project Diva score statistics and ratings / D4DJ event data.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
projectdivar/server/node_modules/touch/test/sanity.js

31 lines
767 B

var fs = require("fs")
var touch = require("../touch.js")
function _ (fn) { return function (er) {
if (er) throw er
fn()
}}
touch.sync("sync")
touch("async", _(function () {
console.log("async", fs.statSync("async"))
console.log("sync", fs.statSync("sync"))
setTimeout(function () {
touch.sync("sync")
touch("async", _(function () {
console.log("async", fs.statSync("async"))
console.log("sync", fs.statSync("sync"))
setTimeout(function () {
touch.sync("sync")
touch("async", _(function () {
console.log("async", fs.statSync("async"))
console.log("sync", fs.statSync("sync"))
fs.unlinkSync("sync")
fs.unlinkSync("async")
}))
}, 1000)
}))
}, 1000)
}))