|
|
@ -1,19 +1,25 @@ |
|
|
import DeviceManager from 'device_manager'; |
|
|
import Editor from 'editor'; |
|
|
import DevicesView from './view/DevicesView'; |
|
|
|
|
|
|
|
|
|
|
|
describe('DeviceManager', () => { |
|
|
describe('DeviceManager', () => { |
|
|
describe('Main', () => { |
|
|
describe('Main', () => { |
|
|
var obj; |
|
|
let obj; |
|
|
var testNameDevice; |
|
|
let testNameDevice; |
|
|
var testWidthDevice; |
|
|
let testWidthDevice; |
|
|
|
|
|
let editor; |
|
|
|
|
|
|
|
|
beforeEach(() => { |
|
|
beforeEach(() => { |
|
|
testNameDevice = 'Tablet'; |
|
|
testNameDevice = 'Tablet'; |
|
|
testWidthDevice = '100px'; |
|
|
testWidthDevice = '100px'; |
|
|
obj = new DeviceManager().init(); |
|
|
editor = new Editor({ |
|
|
|
|
|
deviceManager: { |
|
|
|
|
|
devices: [] |
|
|
|
|
|
} |
|
|
|
|
|
}).init(); |
|
|
|
|
|
obj = editor.Devices; |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
afterEach(() => { |
|
|
afterEach(() => { |
|
|
|
|
|
editor.destroy(); |
|
|
obj = null; |
|
|
obj = null; |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|