Skip to content

Commit a552a64

Browse files
committed
Fixed test
1 parent 69e48a9 commit a552a64

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

frontend/tests/jest/CallLogbutton.test.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ import BroadSoft from '../../js/broadsoft/BroadSoft';
66
require('babel-polyfill');
77
let xmljs = require('xml-js');
88

9-
describe("FACButton", () => {
9+
describe("CallLogButton", () => {
1010

1111
it('loads', () => {
12-
let broadsoft = sinon.stub(Broadsoft, "sendRequest").callsFake(function(){
12+
let broadsoft = sinon.stub(BroadSoft, "sendRequest").callsFake(function(){
1313
let response = xmljs.xml2js("<CallLogs><missed></missed></CallLogs>")
14+
return Promise.resolve(response)
1415
})
1516
let wrapper = shallow(<CallLogs/>);
1617
let async = sinon.stub(wrapper.instance(), "loadAsync").callsFake(function(){});

0 commit comments

Comments
 (0)