Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
enable rule, update object types (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
Liz authored and Josh Goldberg committed Dec 30, 2018
1 parent 15560fc commit b7866bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/tests/UtilsTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ describe('Utils', (): void => {
});

it('should handle objects', (): void => {
const obj1: Object = {};
const obj2: Object = {};
const obj3: Object = {};
const obj1: object = {};
const obj2: object = {};
const obj3: object = {};
const objList = [obj1, obj2];

chai.expect(Utils.contains(objList, obj1)).to.equal(true, 'object equality test for obj1');
Expand Down Expand Up @@ -53,10 +53,10 @@ describe('Utils', (): void => {
});

it('should handle objects', (): void => {
const obj1: Object = {};
const obj2: Object = {};
const obj3: Object = {};
const objList: Object[] = [obj1, obj2, obj3];
const obj1: object = {};
const obj2: object = {};
const obj3: object = {};
const objList: object[] = [obj1, obj2, obj3];

chai.expect(Utils.removeAll(objList, [obj1])).to.deep.equal([obj2, obj2], 'removing object');
chai.expect(Utils.removeAll(objList, [obj1, obj3])).to.deep.equal([obj2], 'removing two objects');
Expand Down
1 change: 0 additions & 1 deletion tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

// Core rules we plan on enabling
// See https://github.com/Microsoft/tslint-microsoft-contrib/issues/491
"ban-types": false,
"deprecation": false,
"eofline": false,
"jsdoc-format": false,
Expand Down

0 comments on commit b7866bf

Please sign in to comment.