std/path/normalize_glob_test.ts
Yoshiya Hinosawa 0ce9c2bf7e
experiment
2024-01-31 18:10:15 +09:00

12 lines
392 B
TypeScript

// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
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}..`,
);
});