From 3f63990049b0f5967811aaced4c7db91a8bb2e51 Mon Sep 17 00:00:00 2001 From: Paula Barszcz Date: Sat, 23 Jul 2022 16:40:47 +0200 Subject: [PATCH] Fix typo in service-tests.md (#8239) Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com> --- doc/service-tests.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/service-tests.md b/doc/service-tests.md index 23afe7255a..2242920f68 100644 --- a/doc/service-tests.md +++ b/doc/service-tests.md @@ -67,7 +67,7 @@ t.create('Build status') - All badges on shields can be requested in a number of formats. As well as calling https://img.shields.io/wercker/build/wercker/go-wercker-api.svg to generate ![](https://img.shields.io/wercker/build/wercker/go-wercker-api.svg) we can also call https://img.shields.io/wercker/build/wercker/go-wercker-api.json to request the same content as JSON. When writing service tests, we request the badge in JSON format so it is easier to make assertions about the content. - We don't need to explicitly call `/wercker/build/wercker/go-wercker-api.json` here, only `/build/wercker/go-wercker-api.json`. When we create a tester object with `createServiceTester()` the URL base defined in our service class (in this case `/wercker`) is used as the base URL for any requests made by the tester object. 3. `expectBadge()` is a helper function which accepts either a string literal, a [RegExp][] or a [Joi][] schema for the different fields. - Joi is a validation library that is build into IcedFrisby which you can use to + Joi is a validation library that is built into IcedFrisby which you can use to match based on a set of allowed strings, regexes, or specific values. You can refer to their [API reference][joi api]. 4. We expect `label` to be a string literal `"build"`.