Skip to content
This repository was archived by the owner on Jul 16, 2020. It is now read-only.

Commit b979f02

Browse files
author
Joonas Koivunen
authored
Merge pull request #28 from rs-ipfs/add_add_tests
add implemented add tests
2 parents 05b29c7 + ddc3b84 commit b979f02

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

test/index.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,44 @@ tests.root.refsLocal(factory);
6464

6565
tests.root.cat(factory);
6666
tests.root.get(factory);
67+
tests.root.add(factory, {
68+
skip: [
69+
// ordered in the order of most likely implementation
70+
// progress:
71+
"should add a BIG Buffer with progress enabled",
72+
// directories:
73+
"should add a nested directory as array of tupples",
74+
"should add a nested directory as array of tupples with progress",
75+
"should add files to a directory non sequentially",
76+
"should wrap content in a directory",
77+
// unixfsv1.5 metadata
78+
"should add with mode as string",
79+
"should add with mode as number",
80+
"should add with mtime as Date",
81+
"should add with mtime as { nsecs, secs }",
82+
"should add with mtime as timespec",
83+
"should add with mtime as hrtime",
84+
// filesystem (maybe)
85+
"should add a directory from the file system",
86+
"should add a directory from the file system with an odd name",
87+
"should ignore a directory from the file system",
88+
"should add a file from the file system",
89+
"should add a hidden file in a directory from the file system",
90+
// raw leaves
91+
"should respect raw leaves when file is smaller than one block and no metadata is present",
92+
"should override raw leaves when file is smaller than one block and metadata is present",
93+
// only-hash=true requires "external block store" or filestore
94+
"should add with only-hash=true",
95+
"should add a directory with only-hash=true",
96+
"should add a file from the file system with only-hash=true",
97+
// remote
98+
"should add from a HTTP URL",
99+
"should add from a HTTP URL with redirection",
100+
"should add from a URL with only-hash=true",
101+
"should add from a URL with wrap-with-directory=true",
102+
"should add from a URL with wrap-with-directory=true and URL-escaped file name"
103+
]
104+
});
67105
// tests.repo(factory)
68106
// tests.object(factory)
69107
// tests.pin(factory)

0 commit comments

Comments
 (0)