mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
6a4eb6cb91
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
14 lines
357 B
TypeScript
14 lines
357 B
TypeScript
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
import { getAssertionState } from "@std/internal/assertion-state";
|
|
|
|
const assertionState = getAssertionState();
|
|
|
|
export function hasAssertions() {
|
|
assertionState.setAssertionCheck(true);
|
|
}
|
|
|
|
export function emitAssertionTrigger() {
|
|
assertionState.setAssertionTriggered(true);
|
|
}
|