Run eslint against all files
This commit is contained in:
13
spec/.eslintrc.js
Normal file
13
spec/.eslintrc.js
Normal 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",
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user