<commit_before>import { RevokeFrom } from '../../src/Commands'
import { TestCommand } from '../test-helpers'

describe('/RevokeFrom()', function() {
  it(
    'should return a properly configured JSON-RPC request for the revokefrom API command',<commit_msg>Adds unit test for the RevokeFrom command.<commit_after>import { RevokeFrom } from '../../src/Commands'
import { TestCommand } from '../test-helpers'

describe('/RevokeFrom()', function() {
  it(
    'should return a properly configured JSON-RPC request for the revokefrom API command',
    function() {
      const from = 'address1'
      const to = 'address2'
      const permissions = 'connect,send,receive,issue,mine,admin,activate'
      const quantity = 10
      const nativeAmount = 10
      const comment = 'comment'
      const recipient = 'recipient'

      // Signature 1: [string, string, string, number]
      TestCommand(
        RevokeFrom(from, to, permissions, quantity),
        RevokeFrom,
        [from, to, permissions, quantity],
      )

      // Signature 2: [string, string, string, number, number]
      TestCommand(
        RevokeFrom(from, to, permissions, quantity, nativeAmount),
        RevokeFrom,
        [from, to, permissions, quantity, nativeAmount],
      )

      // Signature 3: [string, string, string, number, number, string]
      TestCommand(
        RevokeFrom(from, to, permissions, quantity, nativeAmount, comment),
        RevokeFrom,
        [from, to, permissions, quantity, nativeAmount, comment],
      )

      // Signature 4: [string, string, string, number, number, string, string]
      TestCommand(
        RevokeFrom(from, to, permissions, quantity, nativeAmount, comment, recipient),
        RevokeFrom,
        [from, to, permissions, quantity, nativeAmount, comment, recipient],
      )
    },
{'fraction_non_alphanumeric': 0.11767955801104972, 'fraction_numerical': 0.0055248618784530384, 'mean_word_length': 2.9977924944812364, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7529193', 'n_tokens_mistral': 500, 'n_tokens_neox': 487, 'n_words': 155}