@@ -27,27 +27,27 @@ const tests = (common) => {
27
27
let ipfs
28
28
29
29
function fixture ( path ) {
30
- return loadFixture ( __dirname , path , 'interface-ipfs-core' )
30
+ return loadFixture ( path , 'interface-ipfs-core' )
31
31
}
32
32
33
33
const smallFile = {
34
34
cid : 'Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP' ,
35
- data : fixture ( '.. /test/fixtures/testfile.txt' )
35
+ data : fixture ( 'js /test/fixtures/testfile.txt' )
36
36
}
37
37
const bigFile = {
38
38
cid : 'Qme79tX2bViL26vNjPsF3DP1R9rMKMvnPYJiKTTKPrXJjq' ,
39
- data : fixture ( '.. /test/fixtures/15mb.random' )
39
+ data : fixture ( 'js /test/fixtures/15mb.random' )
40
40
}
41
41
42
42
const directory = {
43
43
cid : 'QmVvjDy7yF7hdnqE8Hrf4MHo5ABDtb5AbX6hWbD3Y42bXP' ,
44
44
files : {
45
- 'pp.txt' : fixture ( '.. /test/fixtures/test-folder/pp.txt' ) ,
46
- 'holmes.txt' : fixture ( '.. /test/fixtures/test-folder/holmes.txt' ) ,
47
- 'jungle.txt' : fixture ( '.. /test/fixtures/test-folder/jungle.txt' ) ,
48
- 'alice.txt' : fixture ( '.. /test/fixtures/test-folder/alice.txt' ) ,
49
- 'files/hello.txt' : fixture ( '.. /test/fixtures/test-folder/files/hello.txt' ) ,
50
- 'files/ipfs.txt' : fixture ( '.. /test/fixtures/test-folder/files/ipfs.txt' )
45
+ 'pp.txt' : fixture ( 'js /test/fixtures/test-folder/pp.txt' ) ,
46
+ 'holmes.txt' : fixture ( 'js /test/fixtures/test-folder/holmes.txt' ) ,
47
+ 'jungle.txt' : fixture ( 'js /test/fixtures/test-folder/jungle.txt' ) ,
48
+ 'alice.txt' : fixture ( 'js /test/fixtures/test-folder/alice.txt' ) ,
49
+ 'files/hello.txt' : fixture ( 'js /test/fixtures/test-folder/files/hello.txt' ) ,
50
+ 'files/ipfs.txt' : fixture ( 'js /test/fixtures/test-folder/files/ipfs.txt' )
51
51
}
52
52
}
53
53
@@ -68,7 +68,7 @@ const tests = (common) => {
68
68
69
69
after ( ( done ) => common . teardown ( done ) )
70
70
71
- describe ( '.add' , ( ) => {
71
+ describe . only ( '.add' , ( ) => {
72
72
it ( 'a Buffer' , ( done ) => {
73
73
ipfs . files . add ( smallFile . data , ( err , filesAdded ) => {
74
74
expect ( err ) . to . not . exist ( )
0 commit comments