mirror of
https://github.com/bower/bower.git
synced 2026-02-11 22:44:58 -05:00
12 lines
376 B
JavaScript
12 lines
376 B
JavaScript
var fs = require('fs');
|
|
var path = require('path');
|
|
var Resolver = require('../../../lib/resolve/Resolver');
|
|
|
|
var resolver = new Resolver('foo');
|
|
resolver._createTempDir()
|
|
.then(function (dir) {
|
|
// Need to write something to prevent tmp to automatically
|
|
// remove the temp dir (it removes if empty)
|
|
fs.writeFileSync(path.join(dir, 'some_file'), 'foo');
|
|
})
|
|
.done(); |