std/path/normalize_glob_test.ts

12 lines
392 B
TypeScript
Raw Normal View History

// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2024-01-31 09:10:15 +00:00
import { assertEquals } from "@std/assert";
import { normalizeGlob } from "./normalize_glob.ts";
import { SEPARATOR } from "./constants.ts";
Deno.test("normalizeGlob() checks options.globstar", function () {
assertEquals(
normalizeGlob(`**${SEPARATOR}..`, { globstar: true }),
`**${SEPARATOR}..`,
);
});