diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 51ee59327..a969355d3 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -9,7 +9,7 @@ "version": "3.23.6", "license": "Apache-2.0", "dependencies": { - "@particle/device-constants": "^3.3.0", + "@particle/device-constants": "^3.4.0", "binary-version-reader": "^2.3.1", "chalk": "^2.4.2", "cli-progress": "^3.12.0", @@ -564,9 +564,9 @@ } }, "node_modules/@particle/device-constants": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/@particle/device-constants/-/device-constants-3.3.0.tgz", - "integrity": "sha512-QAx7j77A2ADyVq/vtEzuhrbFM3JXn5gfmC6OpvCuFbLvGoGNcZHBdCaf+y1krrFG9PiWcezNEmhGdkIGtjGsWA==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@particle/device-constants/-/device-constants-3.4.0.tgz", + "integrity": "sha512-3H4g9oZ6LBq9YYOhbZrApwbwU9d1jIFchyrGG41vPmj2awDUqwOQ6errPvjYusm+Kj6jJLduo4h4o74ATEWSIg==", "engines": { "node": ">=12.x", "npm": "8.x" @@ -9852,9 +9852,9 @@ } }, "@particle/device-constants": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/@particle/device-constants/-/device-constants-3.3.0.tgz", - "integrity": "sha512-QAx7j77A2ADyVq/vtEzuhrbFM3JXn5gfmC6OpvCuFbLvGoGNcZHBdCaf+y1krrFG9PiWcezNEmhGdkIGtjGsWA==" + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@particle/device-constants/-/device-constants-3.4.0.tgz", + "integrity": "sha512-3H4g9oZ6LBq9YYOhbZrApwbwU9d1jIFchyrGG41vPmj2awDUqwOQ6errPvjYusm+Kj6jJLduo4h4o74ATEWSIg==" }, "@particle/device-os-protobuf": { "version": "2.4.2", diff --git a/package.json b/package.json index e3b435b52..411679db1 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ } ], "dependencies": { - "@particle/device-constants": "^3.3.0", + "@particle/device-constants": "^3.4.0", "binary-version-reader": "^2.3.1", "chalk": "^2.4.2", "cli-progress": "^3.12.0", diff --git a/src/lib/flash-helper.test.js b/src/lib/flash-helper.test.js index 40b7f0542..9796ea13c 100644 --- a/src/lib/flash-helper.test.js +++ b/src/lib/flash-helper.test.js @@ -579,7 +579,7 @@ describe('flash-helper', () => { expect(mode).to.deep.equal({ flashMode: 'NORMAL', platformId: 26 }); }); - it ('returns an error for mono builds', async() => { + it ('supports mono builds on rtk platforms', async() => { const p2PlatformId = 32; const file = await createBinary(ModuleInfo.FunctionType.MONO_FIRMWARE, p2PlatformId); let error; @@ -588,8 +588,8 @@ describe('flash-helper', () => { } catch (e) { error = e; } - expect(error).to.be.an.instanceOf(Error); - expect(error).to.have.property('message', 'Module type monoFirmware unsupported for p2'); + + expect(error).to.be.undefined; }); }); diff --git a/src/lib/utilities.test.js b/src/lib/utilities.test.js index ff01c0976..9f1acb352 100644 --- a/src/lib/utilities.test.js +++ b/src/lib/utilities.test.js @@ -67,13 +67,13 @@ describe('Utilities', () => { 12: 'Argon', 13: 'Boron', 14: 'Xenon', - 15: 'E SoM X', - 23: 'B SoM', - 25: 'B5 SoM', + 15: 'E-SoM-X', + 23: 'B-SoM', + 25: 'B5-SoM', 26: 'Asset Tracker / Monitor One', - 28: 'Tracker M', + 28: 'Tracker-M', 32: 'Photon 2 / P2', - 35: 'M SoM' + 35: 'M-SoM' }); }); });