Skip to content

Commit e54962a

Browse files
committed
lint
1 parent 85143c0 commit e54962a

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/browser-repl/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
"karma-mocha-reporter": "^2.2.5",
101101
"karma-typescript": "^5.5.4",
102102
"karma-webpack": "^5.0.0",
103+
"lodash": "^4.17.21",
103104
"path-browserify": "^1.0.1",
104105
"prettier": "^2.8.8",
105106
"prop-types": "^15.7.2",

packages/browser-repl/src/components/shell.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ describe('shell', function () {
7070
expect(filterEvaluateCalls(fakeRuntime.evaluate.args)).to.be.empty;
7171
});
7272

73-
it('focuses on the input if the container is clicked', async function () {
73+
it('focuses on the input if the container is clicked', function () {
7474
render(<ShellWrapper runtime={fakeRuntime} />);
75-
await userEvent.click(screen.getByTestId('shell'));
75+
userEvent.click(screen.getByTestId('shell'));
7676

7777
expect(HTMLElement.prototype.focus).to.have.been.calledOnce;
7878
});

packages/browser-repl/src/components/shell.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ export const Shell = ({
338338

339339
const onInput = useCallback(
340340
async (code: string) => {
341-
const newOutput = [...output ?? []];
342-
const newHistory = [...history ?? []];
341+
const newOutput = [...(output ?? [])];
342+
const newHistory = [...(history ?? [])];
343343

344344
// don't evaluate empty input, but do add it to the output
345345
if (!code || code.trim() === '') {

0 commit comments

Comments
 (0)