Skip to content

Commit

Permalink
fix: export a class
Browse files Browse the repository at this point in the history
  • Loading branch information
seekayel committed Dec 10, 2022
1 parent 412c3f7 commit e74fe67
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 8 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
console.log('@cyclic.sh/s3fs: index.js')

class CyclicS3FS {
constructor(bucketName) {
console.log(`new CyclicS3FS('${bucketName}')`)
}
}

module.exports = CyclicS3FS
9 changes: 0 additions & 9 deletions test/index.js

This file was deleted.

1 change: 1 addition & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const s3fs = require("../src")

describe("can require", () => {
test("test true", async () => {
const fs = new s3fs('test-bucket-name')
expect(s3fs).toBeDefined()
})
})

0 comments on commit e74fe67

Please sign in to comment.