diff --git a/src/cli/cloud.test.js b/src/cli/cloud.test.js index 42773972c..8d68f5245 100644 --- a/src/cli/cloud.test.js +++ b/src/cli/cloud.test.js @@ -64,7 +64,7 @@ describe('Cloud Command-Line Interface', () => { 'Display a list of your devices, as well as their variables and functions', 'Usage: particle cloud list [options] [filter]', '', - 'Param filter can be: online, offline, a platform name (core, photon, p1, electron, argon, boron, xenon, esomx, bsom, b5som, tracker, trackerm, p2, msom), a device ID or name', + 'Param filter can be: online, offline, a platform name (core, photon, p1, electron, argon, boron, xenon, esomx, bsom, b5som, tracker, trackerm, p2, msom, electron2), a device ID or name', '' ].join('\n')); }); @@ -308,7 +308,7 @@ describe('Cloud Command-Line Interface', () => { ' particle cloud compile photon Compile the source code in the current directory in the cloud for a `photon`', ' particle cloud compile electron project --saveTo electron.bin Compile the source code in the project directory in the cloud for an `electron` and save it to a file named `electron.bin`', '', - 'Param deviceType can be: core, c, photon, p, p1, electron, e, argon, a, boron, b, xenon, x, esomx, bsom, b5som, tracker, assettracker, trackerm, p2, photon2, msom, muon', + 'Param deviceType can be: core, c, photon, p, p1, electron, e, argon, a, boron, b, xenon, x, esomx, bsom, b5som, tracker, assettracker, trackerm, p2, photon2, msom, muon, electron2', '' ].join('\n')); }); diff --git a/src/cli/usb.test.js b/src/cli/usb.test.js index 9d2cff098..6c07e3b2a 100644 --- a/src/cli/usb.test.js +++ b/src/cli/usb.test.js @@ -63,7 +63,7 @@ describe('USB Command-Line Interface', () => { ' --exclude-dfu Do not list devices which are in DFU mode [boolean]', ' --ids-only Print only device IDs [boolean]', '', - 'Param filter can be: online, offline, a platform name (core, photon, p1, electron, argon, boron, xenon, esomx, bsom, b5som, tracker, trackerm, p2, msom), a device ID or name', + 'Param filter can be: online, offline, a platform name (core, photon, p1, electron, argon, boron, xenon, esomx, bsom, b5som, tracker, trackerm, p2, msom, electron2), a device ID or name', '' ].join('\n')); }); diff --git a/src/lib/platform.js b/src/lib/platform.js index cb7e0baa5..425bc90a0 100644 --- a/src/lib/platform.js +++ b/src/lib/platform.js @@ -25,6 +25,7 @@ const PLATFORMS_BY_ID = PLATFORMS.reduce((map, p) => map.set(p.id, p), new Map() * @property {Number} TRACKERM * @property {Number} P2 * @property {Number} MSOM + * @property {Number} ELECTRON2 */ const PlatformId = PLATFORMS.reduce((out, p) => { out[p.name.toUpperCase()] = p.id; diff --git a/src/lib/utilities.test.js b/src/lib/utilities.test.js index 9f1acb352..af69acef4 100644 --- a/src/lib/utilities.test.js +++ b/src/lib/utilities.test.js @@ -22,7 +22,8 @@ describe('Utilities', () => { 'tracker': 26, 'trackerm': 28, 'p2': 32, - 'msom': 35 + 'msom': 35, + 'electron2': 37 }); }); }); @@ -52,7 +53,8 @@ describe('Utilities', () => { 'p2': 32, 'photon2': 32, 'msom': 35, - 'muon': 35 + 'muon': 35, + 'electron2': 37 }); }); }); @@ -73,7 +75,8 @@ describe('Utilities', () => { 26: 'Asset Tracker / Monitor One', 28: 'Tracker-M', 32: 'Photon 2 / P2', - 35: 'M-SoM' + 35: 'M-SoM', + 37: 'Electron 2' }); }); }); diff --git a/test/e2e/compile.e2e.js b/test/e2e/compile.e2e.js index d1cc963e8..c55eef41d 100644 --- a/test/e2e/compile.e2e.js +++ b/test/e2e/compile.e2e.js @@ -31,7 +31,7 @@ describe('Compile Commands', () => { ' particle compile photon Compile the source code in the current directory in the cloud for a `photon`', ' particle compile electron project --saveTo electron.bin Compile the source code in the project directory in the cloud for an `electron` and save it to a file named `electron.bin`', '', - 'Param deviceType can be: core, c, photon, p, p1, electron, e, argon, a, boron, b, xenon, x, esomx, bsom, b5som, tracker, assettracker, trackerm, p2, photon2, msom, muon', + 'Param deviceType can be: core, c, photon, p, p1, electron, e, argon, a, boron, b, xenon, x, esomx, bsom, b5som, tracker, assettracker, trackerm, p2, photon2, msom, muon, electron2', ]; beforeEach(async () => { diff --git a/test/e2e/list.e2e.js b/test/e2e/list.e2e.js index c5fee8224..8cfbb8a6a 100644 --- a/test/e2e/list.e2e.js +++ b/test/e2e/list.e2e.js @@ -17,7 +17,7 @@ describe('List Commands', () => { ' -v, --verbose Increases how much logging to display [count]', ' -q, --quiet Decreases how much logging to display [count]', '', - 'Param filter can be: online, offline, a platform name (core, photon, p1, electron, argon, boron, xenon, esomx, bsom, b5som, tracker, trackerm, p2, msom), a device ID or name' + 'Param filter can be: online, offline, a platform name (core, photon, p1, electron, argon, boron, xenon, esomx, bsom, b5som, tracker, trackerm, p2, msom, electron2), a device ID or name' ]; before(async () => {