text: describe('jms - equals value check', function () {
  
    var actualMsg = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <testRootElement xmlns="http://www.testing.com/integration/event">
      <checkJustTheValue>hello</checkJustTheValue>
      <emptyElement></emptyElement>
    </testRootElement>`;
  
    it('should report a mismatch where an element\'s actual value does not match the expected value', function () {
      var expectedMessage = [
        {path: 'testRootElement.checkJustTheValue', equals: 'helloo'}
      ];
  
      var result = messageCheckr({
        type: 'jms',
        verbose: true,
        actualMsg: actualMsg,
        expectedMsg: expectedMessage,
        expectedRootElement: 'testRootElement'
      });
  
      assert.equal(result.allChecksPassed, false);
      assert.deepEqual(result.checks[1], {
        actual: 'hello',
        expected: 'helloo',
        description: 'Check actual value hello is equal to helloo',
        pass: false,
        target: {path: 'testRootElement.checkJustTheValue'}
      });
    });
  
    it('should report a mismatch where an element\'s actual value does not match the expected value (actual value is blank)', function () {
      var expectedMessage = [
        {path: 'testRootElement.emptyElement', equals: 'something'}
      ];
  
      var result = messageCheckr({
        type: 'jms',
        verbose: true,
        actualMsg: actualMsg,
        expectedMsg: expectedMessage,
        expectedRootElement: 'testRootElement'
      });
  
      assert.equal(result.allChecksPassed, false);
      assert.deepEqual(result.checks[1], {
        actual: '',
        expected: 'something',
        description: 'Check actual value  is equal to something',
        pass: false,
        target: {path: 'testRootElement.emptyElement'}
      });
    });
  
    it('should report a match where an attribute\'s actual value matches the expected value', function () {
      var expectedMessage = [
        {path: 'testRootElement.checkJustTheValue', equals: 'hello'}
      ];
  
      var result = messageCheckr({
        type: 'jms',
        verbose: true,
        actualMsg: actualMsg,
        expectedMsg: expectedMessage,
        expectedRootElement: 'testRootElement'
      });
  
      assert.equal(result.allChecksPassed, true);
      assert.deepEqual(result.checks[1], {
        actual: 'hello',
        expected: 'hello',
        description: 'Check actual value hello is equal to hello',
        pass: true,
        target: {path: 'testRootElement.checkJustTheValue'}
      });
    });
  
    it('should report a match where an attribute\'s actual value matches the expected value (actual value is blank)', function () {
      var expectedMessage = [
        {path: 'testRootElement.emptyElement', equals: ''}
      ];
  
      var result = messageCheckr({
        type: 'jms',
        verbose: true,
        actualMsg: actualMsg,
        expectedMsg: expectedMessage,
        expectedRootElement: 'testRootElement'
      });
  
      assert.equal(result.allChecksPassed, true);
      assert.deepEqual(result.checks[1], {
        actual: '',
        expected: '',
        description: 'Check actual value  is equal to ',
        pass: true,
        target: {path: 'testRootElement.emptyElement'}
      });
    });
  });