You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
660 B
28 lines
660 B
|
|
'use strict';
|
|
|
|
import SpeedDialModule from '../../src/store/speed-dial';
|
|
import { assert } from 'chai';
|
|
|
|
describe('SpeedDial', function(){
|
|
|
|
it('should load all assigned speed dial slots', function(){
|
|
let state = {
|
|
assignedSlots: []
|
|
};
|
|
let data = [
|
|
{
|
|
destination: "sip:111111@192.168.178.23",
|
|
slot: "*1"
|
|
},
|
|
{
|
|
destination: "sip:333333@192.168.178.23",
|
|
slot: "*3"
|
|
}
|
|
];
|
|
SpeedDialModule.mutations.speedDialSucceeded(state, data);
|
|
assert.deepEqual(state.assignedSlots, data);
|
|
});
|
|
|
|
});
|