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

Commit

Permalink
inspect-test: Improve coverage (graphql#1975)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored Jun 12, 2019
1 parent 91d673f commit a097125
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/jsutils/__tests__/inspect-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down Expand Up @@ -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]');
});
Expand Down Expand Up @@ -100,8 +100,6 @@ describe('inspect', () => {
});

it('custom symbol inspect is take precedence', () => {
invariant(nodejsCustomInspectSymbol);

const object = {
inspect() {
return '<custom inspect>';
Expand Down

0 comments on commit a097125

Please sign in to comment.