From a0971256e693c9bc5147789d647b0d038fb07666 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Wed, 12 Jun 2019 17:25:45 +0300 Subject: [PATCH] inspect-test: Improve coverage (#1975) --- src/jsutils/__tests__/inspect-test.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/jsutils/__tests__/inspect-test.js b/src/jsutils/__tests__/inspect-test.js index 120a4769fd..ba3b58676a 100644 --- a/src/jsutils/__tests__/inspect-test.js +++ b/src/jsutils/__tests__/inspect-test.js @@ -3,7 +3,6 @@ import { expect } from 'chai'; import { describe, it } from 'mocha'; import inspect from '../inspect'; -import invariant from '../invariant'; import nodejsCustomInspectSymbol from '../nodejsCustomInspectSymbol'; describe('inspect', () => { @@ -36,8 +35,9 @@ describe('inspect', () => { }); it('function', () => { - expect(inspect(() => 0)).to.equal('[function]'); + expect(inspect(/* istanbul ignore next */ () => 0)).to.equal('[function]'); + /* istanbul ignore next */ function testFunc() {} expect(inspect(testFunc)).to.equal('[function testFunc]'); }); @@ -100,8 +100,6 @@ describe('inspect', () => { }); it('custom symbol inspect is take precedence', () => { - invariant(nodejsCustomInspectSymbol); - const object = { inspect() { return '';