Skip to content

Commit 79ed2b7

Browse files
chore: small fixes
1 parent 7b37ed9 commit 79ed2b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/api/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ test('installs a plugin via `plugins`', () => {
245245
})
246246
```
247247

248-
249248
### `global.components`
250249

251250
Registers components globally to all components
@@ -298,7 +297,7 @@ test('installs a directive globally', () => {
298297

299298
### `global.mocks`
300299

301-
Mocks a global instance property. Usefor for mocking `this.$store`, `this.$router` etc.
300+
Mocks a global instance property. Can be used for mocking out `this.$store`, `this.$router` etc.
302301

303302
> Note: this is designed to mock variables injected by third party plugins, not Vue's native properties such as $root, $children, etc.
304303
@@ -386,7 +385,7 @@ test('html', () => {
386385

387386
### `text`
388387

389-
Find the text (via `textContent`) of an element.
388+
Returns the text (via `textContent`) of an element.
390389

391390
`Component.vue`:
392391

@@ -569,6 +568,7 @@ export default {
569568
}
570569
}
571570
}
571+
</script>
572572
```
573573

574574
`Component.spec.js`:

0 commit comments

Comments
 (0)