@8hobbies/test-utils
    Preparing search index...

    Module for_at_least_once

    Utilities that replaces for in a test to guarantee at least one iteration.

    Often, we have assertions in test inside for-loops. However, the test may silently pass if the for loop is not entered upon at all. For this reason, this module provides utilities to ensure that the test fails if the for loop is not entered upon at all.

    Functions

    forEachAtLeastOnce