---
title: "Discussion on \"Code Smell 204 - Tests Depending on Dates\" | Hashnode"
description: "Discussion on \"Code Smell 204 - Tests Depending on Dates\". It is a good idea to assert something has happened in the future"
url: "https://hashnode.com/posts/code-smell-204-tests-depending-on-dates/6420be8e2001c5630797911b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Code Smell 204 - Tests Depending on Dates](https://maximilianocontieri.com/code-smell-204-tests-depending-on-dates?utm_source=hashnode&utm_medium=feed)

It is a good idea to assert something has happened in the future

Mar 26, 2023 · 2 min read · maximilianocontieri.com  
Read the article

-   [#programming](https://hashnode.com/tag/programming)
-   [#clean-code](https://hashnode.com/tag/clean-code)
-   [#code-smell-1](https://hashnode.com/tag/code-smell-1)
-   [#refactoring](https://hashnode.com/tag/refactoring)
-   [#cleancode](https://hashnode.com/tag/cleancode)

## Written by

[Maxi Contieri](https://hashnode.com/@mcsee)

@mcsee · Buenos Aires

  
[View profile](https://hashnode.com/@mcsee)

Software Engineer

I’m a senior software engineer loving clean code, and declarative designs. S.O.L.I.D. and agile methodologies fan.

## Responses 1

Markdown supported · ⌘↵ to post

[Rafael dos Santos Miguel Filho](https://hashnode.com/@ThePragmaticEngineer)

[Mar 30, 2023](https://hashnode.com/posts/code-smell-204-tests-depending-on-dates/6420be8e2001c5630797911b/comment/6424ec7f4ebf42a83615fbaa)

Great tip!
