How to use the @stoplight/prism-core/src/__tests__/utils.assertNone function in @stoplight/prism-core

To help you get started, we’ve selected a few @stoplight/prism-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github stoplightio / prism / packages / http / src / validator / utils / __tests__ / spec.spec.ts View on Github external
it('returns nothing', () => {
      assertNone(
        findOperationResponse(
          [{ code: '2XX', contents: [], headers: [] }, { code: '1XX', contents: [], headers: [] }],
          500,
        ),
      );
    });
  });
github stoplightio / prism / packages / http / src / validator / validators / __tests__ / utils.spec.ts View on Github external
it('returns no validation errors', () => {
      assertNone(validateAgainstSchema('test', { type: 'string' }, true, 'pfx'));
      expect(convertAjvErrorsModule.convertAjvErrors).not.toHaveBeenCalled();
    });
  });