Skip to content

Commit

Permalink
fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
shivajivarma committed Jul 20, 2022
1 parent cc44e79 commit 1f81407
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions file-utils/test/mod.test.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
import { assertEquals } from 'https://deno.land/[email protected]/testing/asserts.ts';
import { afterAll, beforeAll, describe, it } from 'https://deno.land/x/[email protected]/mod.ts';
import FileUtils from '../mod.ts';
import dirname from 'https://x.nest.land/[email protected]/mod/dirname.ts';

const __dirname = dirname(import.meta);

const TEST_RESOURCES_PATH = __dirname + 'resources';
const TEST_RESOURCES_PATH = './test/resources';


describe('file-utils', function() {

beforeAll(function() {
const dir = `${TEST_RESOURCES_PATH}/_temp_`;
if (!FileUtils.existsSync(dir)) {
FileUtils.mkdirSync(dir);
FileUtils.mkdirSync(dir, { recursive: true });
}
const copyDir = `${TEST_RESOURCES_PATH}/copy`;
if (FileUtils.existsSync(copyDir)) {
Expand Down

0 comments on commit 1f81407

Please sign in to comment.