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

Commit

Permalink
fix: invalid posix
Browse files Browse the repository at this point in the history
  • Loading branch information
muuvmuuv committed Mar 2, 2021
1 parent 69f00ad commit 5fe32cf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
tmp
latest-changelog.md
coverage
eggs-debug.log

# Created by https://www.toptal.com/developers/gitignore/api/git,windows,linux,macos
# Edit at https://www.toptal.com/developers/gitignore?templates=git,windows,linux,macos
Expand Down
3 changes: 1 addition & 2 deletions config_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ import {
import { resolve } from "https://deno.land/[email protected]/path/mod.ts";

import { getFileConfig } from "./config.ts";
import { __dirname } from "./utils.ts";

const { test } = Deno;

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

const config = await getFileConfig(fixtureConfigPath);

Expand Down
3 changes: 0 additions & 3 deletions utils.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { dirname, fromFileUrl } from "https://deno.land/[email protected]/path/mod.ts";
import { getLogger } from "https://deno.land/[email protected]/log/mod.ts";

export const __dirname = dirname(fromFileUrl(import.meta.url));

export async function runCommand(command: string, flags: string[] = []) {
const process = Deno.run({
cmd: [command, ...flags],
Expand Down

0 comments on commit 5fe32cf

Please sign in to comment.