We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb4ab70 commit afd890cCopy full SHA for afd890c
_guides/styles.md
@@ -158,6 +158,23 @@ quick helpers to keep you out of trouble when using `should`.
158
- `should.Throw`
159
- `should.not.Throw`
160
161
+### Using Should in ES2015
162
+
163
+It isn't possible to chain a function call from an ES2015 `import`
164
+statement – it has to go on its own line, which looks a little
165
+verbose:
166
167
+```js
168
+import chai from 'chai';
169
+chai.should();
170
+```
171
172
+For a cleaner look, you can do this instead:
173
174
175
+import 'chai/should';
176
177
178
## Configuration
179
180
### config.includeStack
0 commit comments