fix(core): update
This commit is contained in:
14
test/test.ts
14
test/test.ts
@@ -33,7 +33,7 @@ tap.test('should get a bucket', async () => {
|
||||
|
||||
// Fast operations
|
||||
tap.test('should store data in bucket fast', async () => {
|
||||
await myBucket.fastStore('hithere/socool.txt', 'hi there!');
|
||||
await myBucket.fastPut('hithere/socool.txt', 'hi there!');
|
||||
});
|
||||
|
||||
tap.test('should get data in bucket', async () => {
|
||||
@@ -49,12 +49,12 @@ tap.test('should delete data in bucket', async () => {
|
||||
// fs operations
|
||||
|
||||
tap.test('prepare for directory style tests', async () => {
|
||||
await myBucket.fastStore('dir1/file1.txt', 'dir1/file1.txt content');
|
||||
await myBucket.fastStore('dir1/file2.txt', 'dir1/file2.txt content');
|
||||
await myBucket.fastStore('dir2/file1.txt', 'dir2/file1.txt content');
|
||||
await myBucket.fastStore('dir3/file1.txt', 'dir3/file1.txt content');
|
||||
await myBucket.fastStore('dir3/dir4/file1.txt', 'dir3/dir4/file1.txt content');
|
||||
await myBucket.fastStore('file1.txt', 'file1 content');
|
||||
await myBucket.fastPut('dir1/file1.txt', 'dir1/file1.txt content');
|
||||
await myBucket.fastPut('dir1/file2.txt', 'dir1/file2.txt content');
|
||||
await myBucket.fastPut('dir2/file1.txt', 'dir2/file1.txt content');
|
||||
await myBucket.fastPut('dir3/file1.txt', 'dir3/file1.txt content');
|
||||
await myBucket.fastPut('dir3/dir4/file1.txt', 'dir3/dir4/file1.txt content');
|
||||
await myBucket.fastPut('file1.txt', 'file1 content');
|
||||
});
|
||||
|
||||
tap.test('should get base directory', async () => {
|
||||
|
Reference in New Issue
Block a user