Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/semver/is_range_test.ts

Deno standard library
Go to Latest
File
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.import { assert } from "../assert/mod.ts";import { ALL } from "./constants.ts";import { formatRange } from "./format_range.ts";import { isRange } from "./is_range.ts";import type { Range } from "./types.ts";
Deno.test({ name: "isRange()", fn: async (t) => { const ranges: Range[] = [[ [ALL], ]]; for (const r of ranges) { await t.step(`${formatRange(r)}`, () => { const actual = isRange(r); assert(actual); }); } },});