Github user stevengill commented on a diff in the pull request:

    https://github.com/apache/cordova-lib/pull/510#discussion_r93492030
  
    --- Diff: cordova-lib/spec-plugman/platforms/windows.spec.js ---
    @@ -50,18 +50,30 @@ function copyArray(arr) {
     }
     
     beforeEach(function () {
    -    this.addMatchers({
    +    jasmine.addMatchers({
             toContainXmlPath: function (xpath) {
                 var xml = this.actual;
                 var notText = this.isNot ? 'not ' : '';
    -            this.message = function () {
    -                return 'Expected xml \'' + et.tostring(xml) + '\' ' + 
notText + 'to contain elements matching \'' + xpath + '\'.';
    -            };
    -
    -            return xml.find(xpath) !== null;
    -        }    });
    +            // this.message = function () {
    +            //     return 'Expected xml \'' + et.tostring(xml) + '\' ' + 
notText + 'to contain elements matching \'' + xpath + '\'.';
    +            // };
    +            return {
    +                compare: function(actual, expected) {
    +                    var result = {};
    +                    result.pass = fs.existsSync(actual);
    +
    +            //return xml.find(xpath) !== null;
    +                    if(result.pass) {
    +                        result.message = "expected " + actual + " to not 
exist";
    --- End diff --
    
    Update first message to 
    `'Expected xml \'' + et.tostring(xml) + '\' ' +' not to contain elements 
matching \'' + expected + '\'.';`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to