diff --git a/lib/aws.js b/lib/aws.js index ee28416..fa0ddbe 100644 --- a/lib/aws.js +++ b/lib/aws.js @@ -38,6 +38,12 @@ exports.createCFNClient = cfn.init(genericAWSClient); exports.createEMRClient = emr.init(genericAWSClient); exports.createMetaDataClient = metadata.init(); +function checkStringIsXML(data) { + var matcher = new RegExp(''; +otherStringPattern = '' + +describe('checkStringXML fn', function () { + it('should return true for string with xml patterns', function () { + console.log('testing check string is XML'); + assert.equal(checkStringIsXML(xmlStringPattern), true); + }); + it('should return false for string with other than xml pattern', function () { + assert.equal(checkStringIsXML(otherStringPattern), false); + }); +}); \ No newline at end of file