Skip to content

Commit

Permalink
Fix e2e test output
Browse files Browse the repository at this point in the history
  • Loading branch information
monkbroc committed Jun 27, 2024
1 parent a94f8fb commit d72a032
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/device-protection.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const {
PRODUCT_01_ID
} = require('../lib/env');

describe.only('Device Protection Commands [@device,@device-protection]', () => {
describe('Device Protection Commands [@device,@device-protection]', () => {
const help = [
'Manage device protection',
'Usage: particle device-protection <command>',
Expand Down Expand Up @@ -62,7 +62,7 @@ describe.only('Device Protection Commands [@device,@device-protection]', () => {

const { stdout, stderr, exitCode } = await cli.run(['device-protection', 'enable']);

expect(stdout).to.include(`[${PRODUCT_01_DEVICE_01_ID}] (Product ${PRODUCT_01_ID}) is now a Protected Device.\nDevice removed from development mode to maintain current settings.`);
expect(stdout).to.include(`[${PRODUCT_01_DEVICE_01_ID}] (Product ${PRODUCT_01_ID}) is now a Protected Device.`);
expect(stderr).to.equal('');
expect(exitCode).to.equal(0);
});
Expand Down Expand Up @@ -94,7 +94,7 @@ describe.only('Device Protection Commands [@device,@device-protection]', () => {
it('Gets the current status of the device', async () => {
const { stdout, stderr, exitCode } = await cli.run(['device-protection', 'status']);

expect(stdout).to.include(`[${PRODUCT_01_DEVICE_01_ID}] (Product ${PRODUCT_01_ID}): Protected Device (Service Mode)\nRun particle device-protection enable to protect the device.`);
expect(stdout).to.include(`[${PRODUCT_01_DEVICE_01_ID}] (Product ${PRODUCT_01_ID}): Protected Device (Service Mode)\nRun particle device-protection enable to take the device out of Service Mode.`);
expect(stderr).to.equal('');
expect(exitCode).to.equal(0);
});
Expand Down

0 comments on commit d72a032

Please sign in to comment.