/* global expect, BigInt */
if (typeof BigInt === 'function') {
  describe('BigInt type', () => {
    it('should consider an instance equal to itself', () => {
      const a = BigInt(1);
      expect(a, 'to equal', a);
    });

    it('should inspect as source code', () => {
      const a = BigInt(123);
      expect(a, 'to inspect as', 'BigInt(123)');
    });
  });
}

/* global expect, BigInt */
if (typeof BigInt === 'function') {
  describe('BigInt type', () => {
    it('should consider an instance equal to itself', () => {
      const a = BigInt(1);
      expect(a, 'to equal', a);
    });

    it('should not be considered equal to the equivalent number', () => {
      expect(
        () => expect(BigInt(1), 'to equal', 1),
        'to throw',
        'expected BigInt(1) to equal 1'
      );
    });

    it('should inspect as source code', () => {
      const a = BigInt(123);
      expect(a, 'to inspect as', 'BigInt(123)');
    });
  });
}

Test that a BigInt does not equal the equivalent number
Test that a BigInt does not equal the equivalent number

https://github.com/unexpectedjs/unexpected/pull/674#discussion_r359075318
