summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDixsie Wolmers <dixsie@ibm.com>2021-02-14 22:06:50 +0300
committerDerick Montague <derick.montague@ibm.com>2021-02-17 00:00:21 +0300
commitd4ebc2a7a9732d0bb22b51ae8159d6facb2ae1ab (patch)
tree7ac8474ae4c7cc44c5239f623d7f63bb8bfad2dd /docs
parentb607152cfcb3c975efc6c0752e585e63373c411c (diff)
downloadwebui-vue-d4ebc2a7a9732d0bb22b51ae8159d6facb2ae1ab.tar.xz
Unit testing docs typo fix
Signed-off-by: Dixsie Wolmers <dixsie@ibm.com> Change-Id: Id75c6e923682f199440ca8d3fd986f034a8f332b
Diffstat (limited to 'docs')
-rw-r--r--docs/guide/unit-testing/readme.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/guide/unit-testing/readme.md b/docs/guide/unit-testing/readme.md
index 95ff2593..7ec635a6 100644
--- a/docs/guide/unit-testing/readme.md
+++ b/docs/guide/unit-testing/readme.md
@@ -34,7 +34,7 @@ The `test:unit:debugger` script will help to debug failing tests using the Chrom
1. Open the Chrome browser and go to `chrome://inspect`
### Fixing failed snapshot tests
-The `test:update` script will update snapshot tests. If the UI has changed and the snapshot tests are failing, after manually verifying the UI changes, run the update script to update the snapshots. Running `test:updat`e can be dangerous, as it will update all snapshot tests.
+The `test:update` script will update snapshot tests. If the UI has changed and the snapshot tests are failing, after manually verifying the UI changes, run the update script to update the snapshots. Running `test:update` can be dangerous, as it will update all snapshot tests.
It is critical to verify all snapshot tests before running the update script. The easiest way is to run the unit test in watch mode, `npm run test:unit -- --watch` and verify each snapshot.
@@ -103,7 +103,7 @@ Mutations are JavaScript functions that mutate the store state. These are basic
### Testing Store Instance
- Uses mutations and actions as inputs
- State is the output
-- Requires the use of `localVue` when creating the store to avoide leaky tests
+- Requires the use of `localVue` when creating the store to avoid leaky tests
#### Pros
- Avoids mocking and brittle tests