Skip to content

Commit

Permalink
targets-widgets rename
Browse files Browse the repository at this point in the history
  • Loading branch information
esthermmoturi committed Nov 4, 2024
1 parent 90bbf50 commit 75a8c28
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions content/en/building/targets/targets-js.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Targets.js"
linkTitle: "Targets.js"
title: "targets.js"
linkTitle: "targets.js"
weight: 3
description: >
Definition of target widgets calculated and seen in the app
Expand All @@ -9,7 +9,7 @@ relatedContent: >
design/best-practices
keywords: targets workflows
aliases:
- /building/reference/targets/
- /building/reference/targets/
- /apps/reference/targets
---

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion content/en/building/tutorials/application-graphics.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,4 @@ Finally run the command: `cht --local upload-app-settings`

To customise the icons used in tasks or the action bar, you will need to edit a form properties file and add an icon property as outline in [form properties]({{< ref "building/tutorials/form-properties" >}}) tutorial.

To customise the icons used in targets, you will need to add an icon property in a target's definition as shown in the [targets]({{< ref "building/targets/targets" >}}) tutorial.
To customise the icons used in targets, you will need to add an icon property in a target's definition as shown in the [targets]({{< ref "building/targets/targets-widgets" >}}) tutorial.
4 changes: 2 additions & 2 deletions content/en/building/tutorials/application-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This tutorial takes you through testing the various configurable components of C
Complete the following tutorials:
- [Building App Forms]({{< ref "building/tutorials/app-forms" >}})
- [Building A Simple Task]({{< ref "building/tasks/simple-tasks" >}})
- [Building Target Widgets]({{< ref "building/targets/targets" >}})
- [Building Target Widgets]({{< ref "building/targets/targets-widgets" >}})
- [Building Contact Summary]({{< ref "building/tutorials/contact-summary" >}})

## Importance of testing your application
Expand Down Expand Up @@ -448,7 +448,7 @@ Testing a target is relatively straightforward. Add a report or contact that inc
Use [`harness.getTargets`](https://docs.communityhealthtoolkit.org/cht-conf-test-harness/Harness.html#getTargets) to check the state of targets. It returns a [`Target`](https://docs.communityhealthtoolkit.org/cht-conf-test-harness/global.html#Target) object which corresponds to the [targets schema](https://docs.communityhealthtoolkit.org/core/overview/db-schema/#targets).
To test the first two targets created in the [targets tutorial]({{< ref "building/targets/targets" >}}), use this code:
To test the first two targets created in the [targets tutorial]({{< ref "building/targets/targets-widgets" >}}), use this code:
```js highlight
it('assessment this month and all time assessments should show correct counts', async () => {
//set the current date
Expand Down

0 comments on commit 75a8c28

Please sign in to comment.