Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix netlify doc links #188

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ New features:
## 3.0.0

There are many significant changes!
See [Upgrading elm-program-test 2.x to 3.x](https://elm-program-test.netlify.com/upgrade-3.0.0.html) for more details about the following changes.
See [Upgrading elm-program-test 2.x to 3.x](https://elm-program-test.netlify.app/upgrade-3.0.0.html) for more details about the following changes.

API Changes:

Expand All @@ -140,9 +140,9 @@ New features:

New documentation:

- new guidebook: [Testing programs with interactive views](https://elm-program-test.netlify.com/html.html)
- new guidebook: [Testing programs with Cmds](https://elm-program-test.netlify.com/cmds.html)
- new guidebook: [Testing programs with ports](https://elm-program-test.netlify.com/cmds.html)
- new guidebook: [Testing programs with interactive views](https://elm-program-test.netlify.app/html.html)
- new guidebook: [Testing programs with Cmds](https://elm-program-test.netlify.app/cmds.html)
- new guidebook: [Testing programs with ports](https://elm-program-test.netlify.app/cmds.html)


## 2.3.2
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ for testing your Elm programs as complete units.
```elm-test install avh4/elm-program-test```


## [Guidebooks](https://elm-program-test.netlify.com/#guidebooks)
## [Guidebooks](https://elm-program-test.netlify.app/#guidebooks)

Note: If you are just looking for a quick example of what using `elm-program-test` looks like,
see the ["basic example"](#basic-example) below.

For more detailed documentation, the following guides show examples of how to use
`elm-program-test` to test different aspects of an Elm program:

- [Testing programs with interactive views](https://elm-program-test.netlify.com/html.html) —
- [Testing programs with interactive views](https://elm-program-test.netlify.app/html.html) —
shows an example of test-driving adding form validation to an Elm program
- [Testing programs with Cmds](https://elm-program-test.netlify.com/cmds.html) — shows testing a program
- [Testing programs with Cmds](https://elm-program-test.netlify.app/cmds.html) — shows testing a program
that uses `Http.get` and `Http.post`
- [Testing programs with ports](https://elm-program-test.netlify.com/ports.html) — shows testing a program
- [Testing programs with ports](https://elm-program-test.netlify.app/ports.html) — shows testing a program
that uses ports to interface with JavaScript
- [Upgrading from elm-program-test 2.x to 3.x](https://elm-program-test.netlify.com/upgrade-3.0.0.html)
- [Upgrading from elm-program-test 2.x to 3.x](https://elm-program-test.netlify.app/upgrade-3.0.0.html)


## Basic example
Expand Down
16 changes: 8 additions & 8 deletions src/ProgramTest.elm
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ This module allows you to interact with your program by simulating
user interactions and external events (like HTTP responses and ports),
and making assertions about the HTML it renders and the external requests it makes.

- [Guide for upgrading from elm-program-test 2.x to 3.x](https://elm-program-test.netlify.com/upgrade-3.0.0.html)
- [Guide for upgrading from elm-program-test 2.x to 3.x](https://elm-program-test.netlify.app/upgrade-3.0.0.html)


## Documentation index
Expand All @@ -63,11 +63,11 @@ For a more detailed explanation of how to get started,
see the elm-program-test guidebooks
(the best one to start with is “Testing programs with interactive views”):

- [Testing programs with interactive views](https://elm-program-test.netlify.com//html.html) —
- [Testing programs with interactive views](https://elm-program-test.netlify.app//html.html) —
shows an example of test-driving adding form validation to an Elm program
- [Testing programs with Cmds](https://elm-program-test.netlify.com/cmds.html) — shows testing a program
- [Testing programs with Cmds](https://elm-program-test.netlify.app/cmds.html) — shows testing a program
that uses `Http.get` and `Http.post`
- [Testing programs with ports](https://elm-program-test.netlify.com/ports.html) — shows testing a program
- [Testing programs with ports](https://elm-program-test.netlify.app/ports.html) — shows testing a program
that uses ports to interface with JavaScript


Expand Down Expand Up @@ -483,7 +483,7 @@ withJsonStringFlags decoder (ProgramDefinition options program) =
when your app runs in production
(this enables you to use [`simulateHttpResponse`](#simulateHttpResponse), [`advanceTime`](#advanceTime), etc.).
For a detailed explanation and example of how to set up tests that use simulated effects,
see the [“Testing programs with Cmds” guidebook](https://elm-program-test.netlify.com/cmds.html).
see the [“Testing programs with Cmds” guidebook](https://elm-program-test.netlify.app/cmds.html).

You only need to use this if you need to simulate [HTTP requests](#simulating-http-responses),
[outgoing ports](#expectOutgoingPortValues),
Expand All @@ -506,7 +506,7 @@ when your app runs in production
(this enables you to use [`simulateIncomingPort`](#simulateIncomingPort), etc.).
You only need to use this if you need to simulate subscriptions in your test.
For a detailed explanation and example of how to set up tests that use simulated subscriptions,
see the [“Testing programs with ports” guidebook](https://elm-program-test.netlify.com/ports.html).
see the [“Testing programs with ports” guidebook](https://elm-program-test.netlify.app/ports.html).

The function you provide should be similar to your program's `subscriptions` function
but return `SimulatedSub`s instead of `Sub`s.
Expand Down Expand Up @@ -1732,7 +1732,7 @@ For example:
Json.Decode.string
(Expect.equal [ "975774a26612", "920facb1bac0" ])

For a more detailed explanation and example, see the [“Testing programs with ports” guidebook](https://elm-program-test.netlify.com/ports.html).
For a more detailed explanation and example, see the [“Testing programs with ports” guidebook](https://elm-program-test.netlify.app/ports.html).

NOTE: You must use [`withSimulatedEffects`](#withSimulatedEffects) before you call [`start`](#start) to be able to use this function.

Expand Down Expand Up @@ -1829,7 +1829,7 @@ For example, here we are simulating the program receiving a list of strings on t
[ "Garden-path sentences can confuse the reader." ]
)

For a more detailed explanation and example, see the [“Testing programs with ports” guidebook](https://elm-program-test.netlify.com/ports.html).
For a more detailed explanation and example, see the [“Testing programs with ports” guidebook](https://elm-program-test.netlify.app/ports.html).

NOTE: You must use [`withSimulatedSubscriptions`](#withSimulatedSubscriptions) before you call [`start`](#start) to be able to use this function.

Expand Down
2 changes: 1 addition & 1 deletion src/SimulatedEffect/Ports.elm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ to help you implement the function to provide when using
[`ProgramTest.withSimulatedEffects`](ProgramTest#withSimulatedEffects)
and [`ProgramTest.withSimulatedSubscriptions`](ProgramTest#withSimulatedSubscriptions).

For a detailed example, see the [“Testing programs with ports” guidebook](https://elm-program-test.netlify.com/ports.html).
For a detailed example, see the [“Testing programs with ports” guidebook](https://elm-program-test.netlify.app/ports.html).

@docs send, subscribe

Expand Down