Skip to content

Commit 12c1cd6

Browse files
committed
Lint
1 parent 2701904 commit 12c1cd6

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

atest/05_Features/Completion.robot

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -114,43 +114,43 @@ Triggers Completer On Dot
114114
Completer Should Suggest append
115115

116116
Material Theme Works
117-
Configure JupyterLab Plugin {"theme": "material"} plugin id=${COMPLETION PLUGIN ID}
117+
Configure JupyterLab Plugin {"theme": "material"} plugin id=${COMPLETION PLUGIN ID}
118118
Capture Page Screenshot 01-configured.png
119119
Enter Cell Editor 1 line=2
120120
Trigger Completer
121121
Capture Page Screenshot 02-completions-shown.png
122122
# TabError is a builtin exception which is a class in Python,
123123
# so we should get lsp:material-class-light icon:
124124
Completer Should Suggest TabError
125-
Completer Should Include Icon lsp:material-class-light
125+
Completer Should Include Icon lsp:material-class-light
126126

127127
VSCode Theme Works
128-
Configure JupyterLab Plugin {"theme": "vscode"} plugin id=${COMPLETION PLUGIN ID}
128+
Configure JupyterLab Plugin {"theme": "vscode"} plugin id=${COMPLETION PLUGIN ID}
129129
Capture Page Screenshot 01-configured.png
130130
Enter Cell Editor 1 line=2
131131
Trigger Completer
132132
Capture Page Screenshot 02-completions-shown.png
133133
Completer Should Suggest TabError
134-
Completer Should Include Icon lsp:vscode-class-light
134+
Completer Should Include Icon lsp:vscode-class-light
135135

136136
VSCode Dark Theme Works
137-
${file} = Set Variable Completion.ipynb
137+
${file} = Set Variable Completion.ipynb
138138
Lab Command Use JupyterLab Dark Theme
139139
Wait For Splash
140140
Capture Page Screenshot 00-theme-changed.png
141-
Configure JupyterLab Plugin {"theme": "vscode"} plugin id=${COMPLETION PLUGIN ID}
141+
Configure JupyterLab Plugin {"theme": "vscode"} plugin id=${COMPLETION PLUGIN ID}
142142
Capture Page Screenshot 01-configured.png
143143
Open ${file} in ${MENU NOTEBOOK}
144144
Enter Cell Editor 1 line=2
145145
Trigger Completer
146146
Capture Page Screenshot 02-completions-shown.png
147147
Completer Should Suggest TabError
148-
Completer Should Include Icon lsp:vscode-class-dark
148+
Completer Should Include Icon lsp:vscode-class-dark
149149
Lab Command Use JupyterLab Light Theme
150150
Wait For Splash
151151

152152
Works Without A Theme
153-
Configure JupyterLab Plugin {"theme": null} plugin id=${COMPLETION PLUGIN ID}
153+
Configure JupyterLab Plugin {"theme": null} plugin id=${COMPLETION PLUGIN ID}
154154
Capture Page Screenshot 01-configured.png
155155
Enter Cell Editor 1 line=2
156156
Trigger Completer
@@ -159,7 +159,7 @@ Works Without A Theme
159159
Wait Until Page Contains Element ${COMPLETER_BOX} .jp-Completer-monogram
160160

161161
Works With Incorrect Theme
162-
Configure JupyterLab Plugin {"theme": "a-non-existing-theme"} plugin id=${COMPLETION PLUGIN ID}
162+
Configure JupyterLab Plugin {"theme": "a-non-existing-theme"} plugin id=${COMPLETION PLUGIN ID}
163163
Capture Page Screenshot 01-configured.png
164164
Enter Cell Editor 1 line=2
165165
Trigger Completer
@@ -184,7 +184,7 @@ Cell Editor Should Equal
184184
Select Completer Suggestion
185185
[Arguments] ${text}
186186
${suggestion} = Set Variable css:.jp-Completer-item[data-value="${text}"]
187-
Wait Until Element Is Visible ${suggestion} timeout=10s
187+
Wait Until Element Is Visible ${suggestion} timeout=10s
188188
Mouse Over ${suggestion}
189189
Click Element ${suggestion} code
190190

packages/completion-theme/src/about.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import React, { ReactElement } from 'react';
2-
import { ICompletionTheme, ILicenseInfo, COMPLETER_THEME_PREFIX } from './types';
2+
import {
3+
ICompletionTheme,
4+
ILicenseInfo,
5+
COMPLETER_THEME_PREFIX
6+
} from './types';
37
import { LabIcon } from '@jupyterlab/ui-components';
48

59
function render_licence(licence: ILicenseInfo): ReactElement {
@@ -32,7 +36,9 @@ function render_theme(
3236
);
3337
}
3438
return (
35-
<div className={'lsp-completer-themes ' + COMPLETER_THEME_PREFIX + theme.id}>
39+
<div
40+
className={'lsp-completer-themes ' + COMPLETER_THEME_PREFIX + theme.id}
41+
>
3642
<h4>
3743
{theme.name}
3844
{is_current ? ' (current)' : ''}

0 commit comments

Comments
 (0)