Skip to content

Commit

Permalink
[editor] fix code styling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
milikhin committed Jul 21, 2024
1 parent b39800b commit 902d3f5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 5 additions & 1 deletion editor/__tests__/app/app.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ describe('SeabassApp', () => {
const waitForApiMessage = waitForSailfishApiMessage()

localStorage.setItem('sailfish__isToolbarOpened', true)
createApp({ apiTransport: API_TRANSPORT.SAILFISH_WEBVIEW })
createApp({
apiTransport: API_TRANSPORT.SAILFISH_WEBVIEW,
welcomeElem: document.createElement('div'),
rootElem: document.createElement('div')
})

// Check for 'appLoaded' action
const evt = await waitForApiMessage
Expand Down
2 changes: 1 addition & 1 deletion editor/__tests__/app/model.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('SeabassAppModel', () => {
content: uuid(),
editorConfig: { indent_size: 1, tab_width: 1 },
filePath: uuid(),
isReadOnly: false,
isReadOnly: false
}

it('should open new Editor', () => {
Expand Down
4 changes: 0 additions & 4 deletions editor/src/app/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ export default class SeabassView {
* Shows welcome note, hides tabs interface
*/
showWelcomeScreen (): void {
if (!this._welcomeElem) {
return
}

this._welcomeElem.style.display = 'block'
this._rootElem.style.display = 'none'
}
Expand Down
2 changes: 1 addition & 1 deletion editor/src/editor/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default class Editor extends EventTarget {
})

// listen to SearchPanel events
const updateListenerExtension = EditorView.updateListener.of(this._onChange.bind(this));
const updateListenerExtension = EditorView.updateListener.of(this._onChange.bind(this))

// set initial editor state
this._initialState = EditorState.create({
Expand Down

0 comments on commit 902d3f5

Please sign in to comment.