Version 1
[yaffs-website] / node_modules / temp / no_cleanup_on_exit.spec.js
diff --git a/node_modules/temp/no_cleanup_on_exit.spec.js b/node_modules/temp/no_cleanup_on_exit.spec.js
new file mode 100644 (file)
index 0000000..13ae28a
--- /dev/null
@@ -0,0 +1,11 @@
+var temp = require('temp');
+temp.track();
+
+console.log('Doing something');
+
+describe('temp will create dir that will remain after the process exits', function() {
+  it('creates a dir', function() {
+    var p = temp.mkdirSync("shouldBeDeletedOnExit");
+    console.log('created dir ' + p);
+  });
+});