cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dubeejw <>
Subject [GitHub] cordova-windows pull request: CB-10927 - Framework references in p...
Date Wed, 30 Mar 2016 15:07:53 GMT
Github user dubeejw commented on a diff in the pull request:
    --- Diff: spec/unit/pluginHandler/windows.spec.js ---
    @@ -441,40 +451,47 @@ describe('windows project handler', function () {
    -        describe('of <framework> elements', function () {
    +       describe('of <framework> elements', function () {
                 // This could be separated into individual specs, but that results in a lot
of copying and deleting the
                 // project files, which is not needed.
                 it('should remove from correct project files when conditions specified',
function () {
    +                var curDir;
    +                curDir = __dirname;
    +                process.chdir(path.join(curDir, '..', 'fixtures', 'testProj'));
                     var frameworks = copyArray(valid_frameworks);
                     frameworks.forEach(function(framework) {
                         PluginHandler.getInstaller('framework')(framework, dummyPluginInfo,
    -                var path = 'ItemGroup/Reference';
    --- End diff --
    A variable named differently from "path" has to be used here. This is because a variable
named "path" is already declared at the top of the file. See line 23: var path = require('path');.
In addition, path.join() is used in this code, so overwriting the "path" variable will cause
us to lose our reference to the path module.

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message