var assert = require('assert');
var canSymlink = require('..');
describe('can-symlink', function() {
it('returns true if no exceptions are thrown', function() {
var options = {
fs: {
symlinkSync: function() {
// noop
},
writeFileSync: function() {
},
unlinkSync: function() {
}
}
};
assert.equal(canSymlink(options), true);
});
it('returns false if exceptions are thrown', function() {
var options = {
fs: {
symlinkSync: function() {
throw Error('Symlink failed');
},
writeFileSync: function() {
},
unlinkSync: function() {
}
}
};
assert.equal(canSymlink(options), false);
});
});
# |
Change |
User |
Description |
Committed |
|
#1
|
23539 |
jenbottom |
Adding the basic code for ember test appk, created with 'ember new' command |
|
|