Skip to main content
Module

x/dir/mod_test.ts

Returns the user and platform specific directories
Go to Latest
File
import { assert } from "https://deno.land/std@0.97.0/testing/asserts.ts";
import dir from "./mod.ts";
Deno.test("test that dir return value is not null and length is more than 0", (): void => { const home = dir("home"); assert(home?.length && home.length > 0);
const cache = dir("cache"); assert(cache?.length && cache.length > 0);
const config = dir("config"); assert(config?.length && config.length > 0);
const data = dir("data"); assert(data?.length && data.length > 0);
const data_local = dir("data_local"); assert(data_local?.length && data_local.length > 0);
const download = dir("download"); assert(download?.length && download.length > 0);});