Skip to content

Commit b18904a

Browse files
committed
chore: fix check, add whiteSpace: 'pre-wrap' for nicer placeholder formatting
1 parent 9fc210d commit b18904a

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

package-lock.json

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

packages/compass-assistant/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"use-sync-external-store": "^1.5.0"
6060
},
6161
"devDependencies": {
62-
"react-dom": "^17.0.2",
6362
"throttleit": "^2.1.0",
6463
"@mongodb-js/eslint-config-compass": "^1.4.5",
6564
"@mongodb-js/mocha-config-compass": "^1.7.0",

packages/compass-assistant/src/assistant-chat.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export const AsisstantChat: React.FunctionComponent<AsisstantChatProps> = ({
6060
alignSelf: message.role === 'user' ? 'flex-end' : 'flex-start',
6161
maxWidth: '80%',
6262
wordWrap: 'break-word',
63+
whiteSpace: 'pre-wrap',
6364
}}
6465
>
6566
{message.parts
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import React from 'react';
22
import { render } from '@mongodb-js/testing-library-compass';
33
import { CompassAssistantProvider } from './index';
4+
import { expect } from 'chai';
45

56
describe('Compass Assistant', function () {
67
const CompassAssistant = CompassAssistantProvider.withMockServices({});
78

89
it('renders a Plugin', function () {
9-
render(<CompassAssistant></CompassAssistant>);
10+
expect(() => render(<CompassAssistant></CompassAssistant>)).to.not.throw;
1011
});
1112
});

0 commit comments

Comments
 (0)