Skip to content

Commit 6c9811c

Browse files
test(sdk): fix tests
1 parent 260dd5a commit 6c9811c

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tests/object-storage/object-storage.test.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
1-
import { ObjectStorage } from 'lib/object-storage';
1+
import { ObjectStorage } from '../../lib/object-storage';
22

33
describe('ObjectStorage', () => {
44
let objectStorage: ObjectStorage;
5+
const originalEnv = process.env;
56

67
beforeEach(() => {
8+
// Set up test environment
9+
process.env = {
10+
...originalEnv,
11+
OBJECT_STORAGE_BUCKET: 'test-bucket-object-storage',
12+
};
13+
714
objectStorage = new ObjectStorage();
815
});
916

17+
afterEach(() => {
18+
// Restore original environment
19+
process.env = originalEnv;
20+
});
21+
1022
describe('uploadFile', () => {
1123
it('should upload a file successfully', async () => {
1224
const fileName = 'test-file.txt';

0 commit comments

Comments
 (0)