Fix errors reported by the func-call-spacing ESLint rule

http://eslint.org/docs/rules/func-call-spacing
This commit is contained in:
Jonas Jenwald 2016-12-10 21:10:29 +01:00
parent ad915f8af1
commit 6606540fe4
2 changed files with 3 additions and 3 deletions

View File

@ -210,7 +210,7 @@ function readDependencies(rootPaths) {
} }
}); });
if (discovered.length === 0) { if (discovered.length === 0) {
throw new Error ('Some circular references exist: somewhere at ' + throw new Error('Some circular references exist: somewhere at ' +
left.join(',')); left.join(','));
} }
discovered.sort(); discovered.sort();

View File

@ -346,12 +346,12 @@ describe('primitives', function() {
}); });
describe('isRef', function () { describe('isRef', function () {
it ('handles non-refs', function () { it('handles non-refs', function () {
var nonRef = {}; var nonRef = {};
expect(isRef(nonRef)).toEqual(false); expect(isRef(nonRef)).toEqual(false);
}); });
it ('handles refs', function () { it('handles refs', function () {
var ref = new Ref(1, 0); var ref = new Ref(1, 0);
expect(isRef(ref)).toEqual(true); expect(isRef(ref)).toEqual(true);
}); });