Skip to content
This repository was archived by the owner on Jan 7, 2023. It is now read-only.

Commit 5fe32cf

Browse files
committed
fix: invalid posix
1 parent 69f00ad commit 5fe32cf

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
tmp
22
latest-changelog.md
33
coverage
4+
eggs-debug.log
45

56
# Created by https://www.toptal.com/developers/gitignore/api/git,windows,linux,macos
67
# Edit at https://www.toptal.com/developers/gitignore?templates=git,windows,linux,macos

config_test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ import {
55
import { resolve } from "https://deno.land/std@0.88.0/path/mod.ts";
66

77
import { getFileConfig } from "./config.ts";
8-
import { __dirname } from "./utils.ts";
98

109
const { test } = Deno;
1110

1211
test("getFileConfig: successfully get config file", async () => {
13-
const fixtureConfigPath = resolve(__dirname, "fixtures/valid.toml");
12+
const fixtureConfigPath = resolve("fixtures/valid.toml");
1413

1514
const config = await getFileConfig(fixtureConfigPath);
1615

utils.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
import { dirname, fromFileUrl } from "https://deno.land/std@0.88.0/path/mod.ts";
21
import { getLogger } from "https://deno.land/std@0.88.0/log/mod.ts";
32

4-
export const __dirname = dirname(fromFileUrl(import.meta.url));
5-
63
export async function runCommand(command: string, flags: string[] = []) {
74
const process = Deno.run({
85
cmd: [command, ...flags],

0 commit comments

Comments
 (0)