All files / test/validation/captions publisher.js

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78  1x                                                                                                                                                     1x  
/* eslint-disable max-len */
const PublisherCaptions = {
  publisherDescription: {
    en: 'Consumer validate',
    ua: 'Consumer валідація',
  },
  missingAmqpExchangeMessage: {
    en: 'should return correct error message with missing amqp, exchange, message properties',
    ua: 'Повинен повернути правильне повідомлення про помилку через відсутні amqp, exchange, message властивості',
  },
  incorrectAmqp: {
    en: 'should return correct error message with incorrect amqp property(object)',
    ua: 'Повинен повернути правильне повідомлення про помилку через відсутній amqp(object)',
  },
  incorrectAmqpMissingUrl: {
    en: 'should return correct error message with incorrect amqp property(missing url)',
    ua: 'Повинен повернути правильне повідомлення про помилку через невалідний amqp(відсутній url)',
  },
  incorrectAmqpNoValidUrl: {
    en: 'should return correct error message with incorrect amqp property(url need string)',
    ua: 'Повинен повернути правильне повідомлення про помилку через невалідний amqp(url має бути string)',
  },
  incorrectExchange: {
    en: 'should return correct error message with incorrect exchange property(object)',
    ua: 'Повинен повернути правильне повідомлення про помилку через відсутній exchange(object)',
  },
  incorrectExchangeMissingNestProperties: {
    en: 'should return correct error message with incorrect exchange property(missing nest properties)',
    ua: 'Повинен повернути правильне повідомлення про помилку через невалідний exchange(відсутні вкладені поля)',
  },
  incorrectExchangeNoValidName: {
    en: 'should return correct error message with incorrect exchange/name property(string)',
    ua: 'Повинен повернути правильне повідомлення про помилку через невалідний exchange/name(string)',
  },
  incorrectExchangeNoValidMode: {
    en: 'should return correct error message with incorrect exchange/mode property(string)',
    ua: 'Повинен повернути правильне повідомлення про помилку через невалідний exchange/mode(string)',
  },
  incorrectExchangeOptions: {
    en: 'should return correct error message with incorrect exchange/options property(object)',
    ua: 'Повинен повернути правильне повідомлення про помилку через відсутній exchange/options(object)',
  },
  incorrectExchangeOptionsMissingNestProperties: {
    en: 'should return correct error message with incorrect exchange/options property(missing nest properties)',
    ua: 'Повинен повернути правильне повідомлення про помилку через невалідний exchange/options(відсутні вкладені поля)',
  },
  incorrectExchangeOptionsNoValidDurable: {
    en: 'should return correct error message with incorrect exchange/options/durable property(string)',
    ua: 'Повинен повернути правильне повідомлення про помилку через невалідний exchange/options/durable(string)',
  },
  incorrectExchangeOptionsNoValidAutoDelete: {
    en: 'should return correct error message with incorrect exchange/options/autoDelete property(boolean)',
    ua: 'Повинен повернути правильне повідомлення про помилку через невалідний exchange/options/autoDelete(boolean)',
  },
  incorrectMessage: {
    en: 'should return correct error message with incorrect message property(object)',
    ua: 'Повинен повернути правильне повідомлення про помилку через відсутній message(object)',
  },
  incorrectMessageMissingNestProperties: {
    en: 'should return correct error message with incorrect message property(missing nest properties)',
    ua: 'Повинен повернути правильне повідомлення про помилку через невалідний message(відсутні вкладені поля)',
  },
  incorrectMessageOptions: {
    en: 'should return correct error message with incorrect message/options property(object)',
    ua: 'Повинен повернути правильне повідомлення про помилку через відсутній message/options(object)',
  },
  incorrectMessageOptionsMissingNestProperties: {
    en: 'should return correct error message with incorrect message/options property(missing nest properties)',
    ua: 'Повинен повернути правильне повідомлення про помилку через невалідний message/options(відсутні вкладені поля)',
  },
  incorrectMessageOptionsNoValidPersistent: {
    en: 'should return correct error message with incorrect message/options/persistent property(boolean)',
    ua: 'Повинен повернути правильне повідомлення про помилку через невалідний message/options/noAck(boolean)',
  },
};
 
module.exports = PublisherCaptions;