We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed81508 commit 8aac403Copy full SHA for 8aac403
test/test.js
@@ -1,7 +1,7 @@
1
'use strict';
2
import path from 'path';
3
import test from 'ava';
4
-import m from '../';
+import m from '..';
5
6
const pkg = path.join(__dirname, '..');
7
const otherName = path.join(__dirname, 'pkg.json');
@@ -19,12 +19,8 @@ test('async - directory', async t => {
19
});
20
21
test.serial('async - default filepath', async t => {
22
- process.chdir('..');
23
-
24
const x = await m();
25
t.is(x.name, 'read-pkg');
26
27
- process.chdir('test');
28
29
30
test('sync', t => {
@@ -40,10 +36,6 @@ test('sync - directory', t => {
40
36
41
37
42
38
test.serial('sync - default filepath', t => {
43
44
45
39
const x = m.sync();
46
47
48
49
0 commit comments