});
it('should assign groupId automatically', function() {
- var groupId, i, j, k, l, m, menu, results, template;
+ var groupId, i, j, k, l, m, menu, template;
template = [];
for (i = j = 0; j <= 10; i = ++j) {
template.push({
});
it("setting 'checked' should flip other items' 'checked' property", function() {
- var i, j, k, l, m, menu, n, o, p, q, results, template;
+ var i, j, k, l, m, menu, n, o, p, q, template;
template = [];
for (i = j = 0; j <= 10; i = ++j) {
template.push({
});
it('returns information of a normal file', function() {
- var file, j, len, p, ref2, results, stats;
+ var file, j, len, p, ref2, stats;
ref2 = ['file1', 'file2', 'file3', path.join('dir1', 'file1'), path.join('link2', 'file1')];
- results = [];
for (j = 0, len = ref2.length; j < len; j++) {
file = ref2[j];
p = path.join(fixtures, 'asar', 'a.asar', file);
assert.equal(stats.isFile(), true);
assert.equal(stats.isDirectory(), false);
assert.equal(stats.isSymbolicLink(), false);
- results.push(assert.equal(stats.size, 6));
+ assert.equal(stats.size, 6);
}
- results;
});
it('returns information of a normal directory', function() {
- var file, j, len, p, ref2, results, stats;
+ var file, j, len, p, ref2, stats;
ref2 = ['dir1', 'dir2', 'dir3'];
- results = [];
for (j = 0, len = ref2.length; j < len; j++) {
file = ref2[j];
p = path.join(fixtures, 'asar', 'a.asar', file);
assert.equal(stats.isFile(), false);
assert.equal(stats.isDirectory(), true);
assert.equal(stats.isSymbolicLink(), false);
- results.push(assert.equal(stats.size, 0));
+ assert.equal(stats.size, 0);
}
- results;
});
it('returns information of a linked file', function() {
- var file, j, len, p, ref2, results, stats;
+ var file, j, len, p, ref2, stats;
ref2 = ['link1', path.join('dir1', 'link1'), path.join('link2', 'link2')];
- results = [];
for (j = 0, len = ref2.length; j < len; j++) {
file = ref2[j];
p = path.join(fixtures, 'asar', 'a.asar', file);
assert.equal(stats.isFile(), false);
assert.equal(stats.isDirectory(), false);
assert.equal(stats.isSymbolicLink(), true);
- results.push(assert.equal(stats.size, 0));
+ assert.equal(stats.size, 0);
}
- results;
});
it('returns information of a linked directory', function() {
- var file, j, len, p, ref2, results, stats;
+ var file, j, len, p, ref2, stats;
ref2 = ['link2', path.join('dir1', 'link2'), path.join('link2', 'link2')];
- results = [];
for (j = 0, len = ref2.length; j < len; j++) {
file = ref2[j];
p = path.join(fixtures, 'asar', 'a.asar', file);
assert.equal(stats.isFile(), false);
assert.equal(stats.isDirectory(), false);
assert.equal(stats.isSymbolicLink(), true);
- results.push(assert.equal(stats.size, 0));
+ assert.equal(stats.size, 0);
}
- results;
});
it('throws ENOENT error when can not find file', function() {
describe('fs.openSync', function() {
it('opens a normal/linked/under-linked-directory file', function() {
- var buffer, fd, file, j, len, p, ref2, results;
+ var buffer, fd, file, j, len, p, ref2;
ref2 = ['file1', 'link1', path.join('link2', 'file1')];
for (j = 0, len = ref2.length; j < len; j++) {
file = ref2[j];