Skip to content

Commit

Permalink
Fix rebase-related issues
Browse files Browse the repository at this point in the history
  • Loading branch information
karreiro committed Jun 26, 2020
1 parent c1556ac commit 780703a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ beforeEach(() => {
},
receive_stateControlCommandUpdate(command: StateControlCommand) {
receivedMessages.push("receiveStateControlEvent_" + command);
}
},
receive_guidedTourUserInteraction(userInteraction: UserInteraction) {
receivedMessages.push("guidedTour_UserInteraction");
},
Expand Down Expand Up @@ -185,7 +185,11 @@ describe("receive", () => {
});

test("open file notification", () => {
handler.receive({ busId: handler.busId, type: EnvelopeBusMessageType.NOTIFY_EDITOR_OPEN_FILE, data: "file/path/to/open" });
handler.receive({
busId: handler.busId,
type: EnvelopeBusMessageType.NOTIFY_EDITOR_OPEN_FILE,
data: "file/path/to/open"
});
expect(receivedMessages).toEqual(["receiveOpenFile_file/path/to/open"]);
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ function renderEditorEnvelopeView(): [EditorEnvelopeView, ReturnType<typeof shal
},
receive_previewRequest: () => {
receivedMessages.push(["receive_previewRequest"]);
},
receive_guidedTourElementPositionRequest: () => {
receivedMessages.push(["receive_guidedTourElementPositionRequest"]);
}
})
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ exports[`EditorEnvelopeController after received content 1`] = `
"receive_contentResponse": [Function],
"receive_editorRedo": [Function],
"receive_editorUndo": [Function],
"receive_guidedTourElementPositionRequest": [Function],
"receive_languageResponse": [Function],
"receive_previewRequest": [Function],
"receive_resourceContentList": [Function],
Expand Down Expand Up @@ -503,6 +504,7 @@ exports[`EditorEnvelopeController opens 1`] = `
"receive_contentResponse": [Function],
"receive_editorRedo": [Function],
"receive_editorUndo": [Function],
"receive_guidedTourElementPositionRequest": [Function],
"receive_languageResponse": [Function],
"receive_previewRequest": [Function],
"receive_resourceContentList": [Function],
Expand Down Expand Up @@ -729,6 +731,7 @@ exports[`EditorEnvelopeController receives init request 1`] = `
"receive_contentResponse": [Function],
"receive_editorRedo": [Function],
"receive_editorUndo": [Function],
"receive_guidedTourElementPositionRequest": [Function],
"receive_languageResponse": [Function],
"receive_previewRequest": [Function],
"receive_resourceContentList": [Function],
Expand Down
1 change: 0 additions & 1 deletion packages/vscode-extension/src/KogitoEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ export class KogitoEditor {
* VS Code has his own state control API.
*/
},
receive_guidedTourElementPositionRequest: _ => {
receive_guidedTourElementPositionResponse: _ => {
/* empty */
},
Expand Down

0 comments on commit 780703a

Please sign in to comment.