This is an automated email from the ASF dual-hosted git repository. brodybits pushed a commit to branch brodybits-uwp-only-test-wip0201 in repository https://gitbox.apache.org/repos/asf/cordova-windows.git
commit 766e4f42c2a2193f3e2ce89dc8e34eced1392042 Author: Christopher J. Brody <[email protected]> AuthorDate: Sun Dec 22 14:50:02 2019 -0500 update unit tests for build tools version 15.0 --- spec/unit/build.spec.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/spec/unit/build.spec.js b/spec/unit/build.spec.js index e18c951..e814a52 100644 --- a/spec/unit/build.spec.js +++ b/spec/unit/build.spec.js @@ -113,7 +113,7 @@ describe('run method', function () { // utils.isCordovaProject is a spy, so we can call andReturn directly on it utils.isCordovaProject.and.returnValue(false); - createFindAllAvailableVersionsMock([{ version: '14.0', buildProject: buildSpy, path: testPath }]); + createFindAllAvailableVersionsMock([{ version: '15.0', buildProject: buildSpy, path: testPath }]); return build.run([ 'node', buildPath, '--release', '--debug' ]).then( () => fail('Expected promise to be rejected'), @@ -143,7 +143,7 @@ describe('run method', function () { it('should respect build configuration from \'buildConfig\' option', function () { - createFindAllAvailableVersionsMock([{ version: '14.0', buildProject: jasmine.createSpy(), path: testPath }]); + createFindAllAvailableVersionsMock([{ version: '15.0', buildProject: jasmine.createSpy(), path: testPath }]); var buildConfigPath = path.resolve(__dirname, 'fixtures/fakeBuildConfig.json'); return build.run({ buildConfig: buildConfigPath }) @@ -167,7 +167,7 @@ describe('run method', function () { expect(buildType).toBe('release'); }); - createFindAllAvailableVersionsMock([{ version: '14.0', buildProject: buildSpy, path: testPath }]); + createFindAllAvailableVersionsMock([{ version: '15.0', buildProject: buildSpy, path: testPath }]); return build.run({ release: true }) .finally(function () { @@ -180,7 +180,7 @@ describe('run method', function () { expect(buildType).toBe('debug'); }); - createFindAllAvailableVersionsMock([{ version: '14.0', buildProject: buildSpy, path: testPath }]); + createFindAllAvailableVersionsMock([{ version: '15.0', buildProject: buildSpy, path: testPath }]); return build.run([ 'node', buildPath ]) .finally(function () { @@ -193,7 +193,7 @@ describe('run method', function () { expect(buildArch).toBe('arm'); }); - createFindAllAvailableVersionsMock([{ version: '14.0', buildProject: buildSpy, path: testPath }]); + createFindAllAvailableVersionsMock([{ version: '15.0', buildProject: buildSpy, path: testPath }]); return build.run({ archs: 'arm' }) .finally(function () { @@ -209,7 +209,7 @@ describe('run method', function () { createFindAllAvailableVersionsMock([ { - version: '14.0', + version: '15.0', path: testPath, buildProject: function (solutionFile, buildType, buildArch) { expect(buildArch).toMatch(/^arm$|^any\s?cpu$|^x86$|^x64$/); @@ -339,7 +339,7 @@ describe('run method', function () { }); it('spec.15a should choose latest version if there are multiple versions available with minor version difference', function () { - var buildTools14 = { version: '14.0', buildProject: jasmine.createSpy('buildTools14'), path: testPath }; + var buildTools14 = { version: '15.0', buildProject: jasmine.createSpy('buildTools14'), path: testPath }; var buildTools15 = { version: '15.0', buildProject: jasmine.createSpy('buildTools15'), path: testPath }; var buildTools151 = { version: '15.1', buildProject: jasmine.createSpy('buildTools151'), path: testPath }; @@ -352,7 +352,7 @@ describe('run method', function () { }); it('spec.15b should choose latest version if there are multiple versions available with minor version difference', function () { - var buildTools14 = { version: '14.0', buildProject: jasmine.createSpy('buildTools14'), path: testPath }; + var buildTools14 = { version: '15.0', buildProject: jasmine.createSpy('buildTools14'), path: testPath }; var buildTools15 = { version: '15.0', buildProject: jasmine.createSpy('buildTools15'), path: testPath }; var buildTools151 = { version: '15.1', buildProject: jasmine.createSpy('buildTools151'), path: testPath }; @@ -405,7 +405,7 @@ describe('buildFlags', function () { }); it('should pass buildFlags directly to MSBuild', function () { - var buildTools = { version: '14.0', buildProject: jasmine.createSpy('buildProject').and.returnValue(Q()), path: testPath }; + var buildTools = { version: '15.0', buildProject: jasmine.createSpy('buildProject').and.returnValue(Q()), path: testPath }; var buildOptions = { argv: ['--buildFlag', 'foo=bar'] }; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
