TT#71853 Added localized labels to speedial and voicebox api tests

Change-Id: I428c3e7bf47d8f19767432dc4d0838f786b42080
changes/57/35857/1
Carlo Venusino 5 years ago
parent 7a1e6a62b6
commit 3a97514ccf

@ -11,6 +11,7 @@ import {
getUnassignedSlots
} from '../../src/api/speed-dial';
import { assert } from 'chai';
import { i18n } from '../../src/i18n';
Vue.use(VueResource);
@ -149,31 +150,31 @@ describe('SpeedDial', function(){
let slotOptions = [
{
"label" : "Slot *1",
"label" : i18n.t('speedDial.slot').concat(" *1"),
"value" : "*1"
},
{
"label" : "Slot *2",
"label" : i18n.t('speedDial.slot').concat(" *2"),
"value" : "*2"
},
{
"label" : "Slot *4",
"label" : i18n.t('speedDial.slot').concat(" *4"),
"value" : "*4"
},
{
"label" : "Slot *5",
"label" : i18n.t('speedDial.slot').concat(" *5"),
"value" : "*5"
},
{
"label" : "Slot *6",
"label" : i18n.t('speedDial.slot').concat(" *6"),
"value" : "*6"
},
{
"label" : "Slot *7",
"label" : i18n.t('speedDial.slot').concat(" *7"),
"value" : "*7"
},
{
"label" : "Slot *8",
"label" : i18n.t('speedDial.slot').concat(" *8"),
"value" : "*8"
}
];

@ -93,7 +93,7 @@ describe('Voicebox', function(){
busyGreetingId: null
};
let getterObject = VoiceboxModule.getters.busyGreetingLabel(state);
assert.equal(getterObject, 'Default sound');
assert.equal(getterObject, i18n.t('voicebox.label.defaultSoundActive'));
});
it('should get right label for unavailable greeting to indicate if it\'s custom or default', function(){
@ -101,7 +101,7 @@ describe('Voicebox', function(){
unavailGreetingId: 1
};
let getterObject = VoiceboxModule.getters.unavailGreetingLabel(state);
assert.equal(getterObject, 'Custom sound');
assert.equal(getterObject, i18n.t('voicebox.label.customSoundActive'));
});
});

Loading…
Cancel
Save