diff --git a/spec/cordova/platform/listDeprecated.spec.js b/spec/cordova/platform/listDeprecated.spec.js index 369caf7ae..ff1fc5e42 100644 --- a/spec/cordova/platform/listDeprecated.spec.js +++ b/spec/cordova/platform/listDeprecated.spec.js @@ -57,12 +57,12 @@ describe('cordova/platform/list show deprecated platforms info', function () { it('shows available platforms with deprecated info', () => { return platform_list(hooks_mock, projectRoot, { save: true }) .then((result) => { - expect(events.emit).toHaveBeenCalledWith('results', jasmine.stringMatching(/Installed platforms:[\s\S]*Available.*:[\s]*android 1.2.3[\s]*wp7 4.5.6 \(deprecated\)/)); + expect(events.emit).toHaveBeenCalledWith('results', jasmine.stringMatching(/Installed platforms:[\s\S]*Available.*:[\s]*android 1.2.3[\s]*wp7 4.5.6 - deprecated/)); }); }); it('returns platform list with deprecated info', function () { var platformList = ['android 1.2.3', 'wp7 4.5.6']; - expect(platform_list.addDeprecatedInformationToPlatforms(platformList)).toEqual(['android 1.2.3', 'wp7 4.5.6 (deprecated)']); + expect(platform_list.addDeprecatedInformationToPlatforms(platformList)).toEqual(['android 1.2.3', 'wp7 4.5.6 - deprecated']); }); }); diff --git a/src/cordova/platform/list.js b/src/cordova/platform/list.js index 5ab1adc66..a434b2b88 100644 --- a/src/cordova/platform/list.js +++ b/src/cordova/platform/list.js @@ -58,7 +58,7 @@ function addDeprecatedInformationToPlatforms (platformsList) { var platformKey = p.split(' ')[0]; // Remove Version Information // allow for 'unknown' platforms, which will not exist in platforms if ((platforms.info[platformKey] || {}).deprecated) { - p = p.concat(' ', '(deprecated)'); + p = p.concat(' - deprecated'); } return p; });