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.
33 lines
778 B
33 lines
778 B
|
|
'use strict';
|
|
|
|
import VoiceboxModule from '../../src/store/voicebox';
|
|
import { assert } from 'chai';
|
|
|
|
describe('Voicebox', function(){
|
|
|
|
it('should load all voicebox settings into store', function(){
|
|
let state = {
|
|
voiceboxSettings: {
|
|
attach: null,
|
|
delete: null,
|
|
email: '',
|
|
id: null,
|
|
pin: null,
|
|
sms_number: ''
|
|
}
|
|
};
|
|
let settings = {
|
|
attach: true,
|
|
delete: false,
|
|
email: '',
|
|
id: 123,
|
|
pin: 1234,
|
|
sms_number: ''
|
|
};
|
|
VoiceboxModule.mutations.loadingSucceeded(state, settings);
|
|
assert.deepEqual(state.voiceboxSettings, settings);
|
|
});
|
|
|
|
});
|