Skip to content

Commit

Permalink
Remove Deta package
Browse files Browse the repository at this point in the history
  • Loading branch information
Awesome-E committed Sep 8, 2024
1 parent 5096d46 commit 5128c10
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 57 deletions.
18 changes: 9 additions & 9 deletions .jest/mock-deta.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
const { createDefaultSettings } = require('../src/listeners/config')
const deta = require('deta')
// const deta = require('deta')

const mockBaseGet = jest.fn(id => createDefaultSettings({ id }))
const mockBasePut = jest.fn()

jest.mock('deta', () => ({
Deta: jest.fn(() => ({
Base: jest.fn(() => ({
get: (...args) => mockBaseGet(...args),
put: (...args) => mockBasePut(...args)
}))
}))
}))
// jest.mock('deta', () => ({
// Deta: jest.fn(() => ({
// Base: jest.fn(() => ({
// get: (...args) => mockBaseGet(...args),
// put: (...args) => mockBasePut(...args)
// }))
// }))
// }))

jest.mock('../src/modules/database', () => ({
serverSettingsDB: {
Expand Down
47 changes: 0 additions & 47 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"@types/jsdom": "^21.1.6",
"buffer-chunks": "^0.1.1",
"cors": "^2.8.5",
"deta": "^2.0.0",
"discord-html-transcripts": "^3.2.0",
"discord.js": "^14.14.1",
"dotenv": "^16.4.5",
Expand Down

0 comments on commit 5128c10

Please sign in to comment.