mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-08 12:45:55 +08:00
refactor(server): use new storage providers (#5433)
This commit is contained in:
@@ -99,8 +99,8 @@ test('should list blobs', async t => {
|
||||
|
||||
const ret = await listBlobs(app, u1.token.token, workspace.id);
|
||||
t.is(ret.length, 2, 'failed to list blobs');
|
||||
t.is(ret[0], hash1, 'failed to list blobs');
|
||||
t.is(ret[1], hash2, 'failed to list blobs');
|
||||
// list blob result is not ordered
|
||||
t.deepEqual(ret.sort(), [hash1, hash2].sort());
|
||||
});
|
||||
|
||||
test('should calc blobs size', async t => {
|
||||
@@ -189,3 +189,13 @@ test('should be able calc quota after switch plan', async t => {
|
||||
);
|
||||
t.is(size2, 0, 'failed to check pro plan blob size');
|
||||
});
|
||||
|
||||
test('should reject blob exceeded limit', t => {
|
||||
// TODO
|
||||
t.true(true);
|
||||
});
|
||||
|
||||
test('should reject blob exceeded quota', t => {
|
||||
// TODO
|
||||
t.true(true);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user