import {assert} from '@webex/test-helper-chai';

describe('plugin-devices', () => {
  beforeEach('initialize webex with the devices plugin', () => {});

  describe('#clear()', () => {});
  describe('#setLogoutTimer()', () => {});
  describe('#serialize()', () => {});

  it('temporary pass flag', () => assert.isTrue(true));
});

@@ -40,16 +40,189 @@
 r-chai';
+%0Aimport %7BcloneDeep%7D from 'lodash';%0Aimport Devices from '@webex/internal-plugin-devices';%0Aimport MockWebex from '@webex/test-helper-mock-webex';%0A%0Aimport dto from './wdm-dto';
 %0A%0Adescri
@@ -250,16 +250,45 @@
 () =%3E %7B%0A
+  let webex;%0A  let devices;%0A%0A
   before
@@ -339,24 +339,874 @@
 in', () =%3E %7B
+%0A    webex = new MockWebex(%7B%0A      children: %7B%0A        devices: Devices%0A      %7D%0A    %7D);%0A%0A    const deviceConfig = cloneDeep(dto);%0A%0A    webex.internal.devices.set(deviceConfig);%0A%0A    devices = webex.internal.devices;%0A  %7D);%0A%0A  describe('derived properties', () =%3E %7B%0A    describe('#registered', () =%3E %7B%0A      describe('when the device does not have a url', () =%3E %7B%0A        beforeEach('remove the device%5C's url', () =%3E %7B%0A          devices.url = undefined;%0A        %7D);%0A%0A        it('should return false', () =%3E %7B%0A          assert.isFalse(devices.registered);%0A        %7D);%0A      %7D);%0A%0A      describe('when the device does have a url', () =%3E %7B%0A        beforeEach('set the device%5C's url', () =%3E %7B%0A          devices.url = dto.url;%0A        %7D);%0A%0A        it('should return true', () =%3E %7B%0A          assert.isTrue(devices.registered);%0A        %7D);%0A      %7D);%0A    %7D);%0A  
 %7D);%0A%0A  descr

add derived property tests