Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inspect-test: Improve coverage #1975

Merged
merged 1 commit into from
Jun 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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