Fix broken test
This commit is contained in:
parent
7a09eeb4ea
commit
bd56f5b287
@ -16,14 +16,6 @@ describe('ContextMenu', () => {
|
|||||||
expect(contextMenu.getText({ text: 'testing' })).to.equal('testing');
|
expect(contextMenu.getText({ text: 'testing' })).to.equal('testing');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('has a function to call a callback', done => {
|
|
||||||
var callback = () => {
|
|
||||||
done();
|
|
||||||
};
|
|
||||||
|
|
||||||
contextMenu.callAction(event, callback);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('captures the parent oncontextmenu event', done => {
|
it('captures the parent oncontextmenu event', done => {
|
||||||
contextMenuService.closeAllCalled.subscribe( called => {
|
contextMenuService.closeAllCalled.subscribe( called => {
|
||||||
expect(called).to.equal(true);
|
expect(called).to.equal(true);
|
||||||
|
Reference in New Issue
Block a user