PHP WebShell

Текущая директория: /opt/BitGoJS/modules/express/test/lib

Просмотр файла: asserts.ts

// eslint-disable-next-line
/// <reference types="node" />
// Additional convenience assertions for should

import { Assertion } from 'should';

Assertion.add('calledOnceWith', function (...args) {
  // @ts-expect-error - no implicit this
  this.params = { operator: 'to be called once with' };

  // @ts-expect-error - no implicit this
  this.obj.should.have.been.calledOnce();
  // @ts-expect-error - no implicit this
  this.obj.should.have.been.calledWith(...args);
});

Выполнить команду


Для локальной разработки. Не используйте в интернете!