Run eslint against all files

This commit is contained in:
Steve Gravrock
2020-07-01 16:05:02 -07:00
parent fb23277367
commit ba2aae63be
4 changed files with 18 additions and 9 deletions

13
spec/.eslintrc.js Normal file
View File

@@ -0,0 +1,13 @@
module.exports = {
rules: {
// Relax rules for now to allow for the quirks of the test suite
// TODO: We should probably remove these & fix the resulting errors
"quotes": "off",
"semi": "off",
"key-spacing": "off",
"space-before-blocks": "off",
"no-unused-vars": "off",
"no-trailing-spaces": "off",
"block-spacing": "off",
}
}

View File

@@ -821,7 +821,7 @@ describe("matchersUtil", function() {
expect(diffBuilder.setRoots).toHaveBeenCalledWith(actual, expected);
expect(diffBuilder.withPath).toHaveBeenCalledWith('x', jasmine.any(Function));
expect(diffBuilder.recordMismatch). toHaveBeenCalledWith();
expect(diffBuilder.recordMismatch).toHaveBeenCalledWith();
});
it("records both objects when the tester does not implement valuesForDiff", function() {
@@ -836,7 +836,7 @@ describe("matchersUtil", function() {
expect(diffBuilder.setRoots).toHaveBeenCalledWith(actual, expected);
expect(diffBuilder.withPath).toHaveBeenCalledWith('x', jasmine.any(Function));
expect(diffBuilder.recordMismatch). toHaveBeenCalledWith();
expect(diffBuilder.recordMismatch).toHaveBeenCalledWith();
});
});