Remove unneeded returns

This commit is contained in:
Kevin Sawicki 2016-02-16 17:39:11 -08:00
parent e63c3c727a
commit 12adaa0570
14 changed files with 773 additions and 826 deletions

View file

@ -9,40 +9,37 @@ describe('third-party module', function() {
if (process.platform !== 'win32' || process.execPath.toLowerCase().indexOf('\\out\\d\\') === -1) {
describe('runas', function() {
it('can be required in renderer', function() {
return require('runas');
require('runas');
});
return it('can be required in node binary', function(done) {
var child, runas;
runas = path.join(fixtures, 'module', 'runas.js');
child = require('child_process').fork(runas);
return child.on('message', function(msg) {
it('can be required in node binary', function(done) {
var runas = path.join(fixtures, 'module', 'runas.js');
var child = require('child_process').fork(runas);
child.on('message', function(msg) {
assert.equal(msg, 'ok');
return done();
done();
});
});
});
describe('ffi', function() {
return it('does not crash', function() {
var ffi, libm;
ffi = require('ffi');
libm = ffi.Library('libm', {
it('does not crash', function() {
var ffi = require('ffi');
var libm = ffi.Library('libm', {
ceil: ['double', ['double']]
});
return assert.equal(libm.ceil(1.5), 2);
assert.equal(libm.ceil(1.5), 2);
});
});
}
return describe('q', function() {
var Q;
Q = require('q');
return describe('Q.when', function() {
return it('emits the fullfil callback', function(done) {
return Q(true).then(function(val) {
describe('q', function() {
var Q = require('q');
describe('Q.when', function() {
it('emits the fullfil callback', function(done) {
Q(true).then(function(val) {
assert.equal(val, true);
return done();
done();
});
});
});