message: Fix: `purser-trezor` sign requirements unit tests
diff: @@ -7,6 +7,7 @@ import {
  } from '@colony/purser-trezor/staticMethods';
  import { REQUIRED_PROPS } from '@colony/purser-core/defaults';
  +import { REQUIRED_PROPS as REQUIRED_TREZOR_PROPS } from '@colony/purser-trezor/defaults';
  import { TYPE_HARDWARE, SUBTYPE_TREZOR } from '@colony/purser-core/types';
  jest.dontMock('@colony/purser-trezor/class');
  @@ -106,7 +107,7 @@ describe('Trezor` Hardware Wallet Module', () => {
  });
  },
  );
  - test('Validate `sign` method user input', async () => {
  + test('Validate `sign` method user input for transactions', async () => {
  const trezorWallet = new TrezorWalletClass(mockedInstanceArgument);
  await trezorWallet.sign(mockedTransactionObject);
  /*
  @@ -115,9 +116,28 @@ describe('Trezor` Hardware Wallet Module', () => {
  expect(userInputValidator).toHaveBeenCalled();
  expect(userInputValidator).toHaveBeenCalledWith({
  firstArgument: mockedTransactionObject,
  - requiredAll: REQUIRED_PROPS.SIGN_TRANSACTION,
  + requiredAll: REQUIRED_TREZOR_PROPS.SIGN_TRANSACTION,
  });
  });
  + test(
  + 'Validate `sign` method user input for contract deployments',
  + async () => {
  + const trezorWallet = new TrezorWalletClass(mockedInstanceArgument);
  + /*
  + * If we don't have a destination address (to field), then assume we
  + * deploy a contract, so check for the `inputData` prop
  + */
  + await trezorWallet.sign({});
  + /*
  + * Validate the input
  + */
  + expect(userInputValidator).toHaveBeenCalled();
  + expect(userInputValidator).toHaveBeenCalledWith({
  + firstArgument: {},
  + requiredAll: REQUIRED_TREZOR_PROPS.SIGN_TRANSACTION_CONTRACT,
  + });
  + },
  + );
  test(
  "Calls the `signMessage()` static method from the instance's methods",
  async () => {
  