From 869141fc4d4901db9543ed4c5c053a305024e399 Mon Sep 17 00:00:00 2001
From: Doug Beatty <44704949+dbeatty10@users.noreply.github.com>
Date: Fri, 26 Jul 2024 03:41:20 -0600
Subject: [PATCH] Fix `alias` code example for `data_tests` (#5842)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
resolves #5802
[Preview](https://docs-getdbt-com-git-dbeatty10-patch-1-dbt-labs.vercel.app/reference/resource-configs/alias)
(click the "Tests" tab)
## What are you changing in this pull request and why?
Fix the code example.
### 🎩
Before:
After:
## Checklist
- [x] Review the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
so my content adheres to these guidelines.
---
website/docs/reference/resource-configs/alias.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/website/docs/reference/resource-configs/alias.md b/website/docs/reference/resource-configs/alias.md
index 4eb135a5f42..6cb14371dfa 100644
--- a/website/docs/reference/resource-configs/alias.md
+++ b/website/docs/reference/resource-configs/alias.md
@@ -96,8 +96,8 @@ models:
columns:
- name: order_id
tests:
- - unique
- alias: unique_order_id_test
+ - unique:
+ alias: unique_order_id_test
```
When using `--store-failures`, this would return the name `analytics.finance.orders_order_id_unique_order_id_test` in the database.