Cleanup ignore lint error: no-construct

Every line that violates the rules has a clear intention of ensuring coverage.
This commit is contained in:
segayuu
2017-12-01 13:09:00 +09:00
parent e080c0caa8
commit 8f2c412e78
2 changed files with 3 additions and 1 deletions

View File

@@ -133,7 +133,9 @@ function _typeof() {
expect(5).to.be.a('number');
(5).should.be.a('number');
// tslint:disable-next-line:no-construct
expect(new Number(1)).to.be.a('number');
// tslint:disable-next-line:no-construct
(new Number(1)).should.be.a('number');
expect(Number(1)).to.be.a('number');
Number(1).should.be.a('number');
@@ -1304,6 +1306,7 @@ suite('assert', () => {
test('isString', () => {
assert.isString('Foo');
// tslint:disable-next-line:no-construct
assert.isString(new String('foo'));
assert.isString(1);
});

View File

@@ -4,7 +4,6 @@
"ban-types": false,
"callable-types": false,
"new-parens": false,
"no-construct": false,
"no-empty-interface": false,
"no-inferrable-types": false,
"no-redundant-jsdoc-2": false,