mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
fix tests: replace initialConfig with config
This commit is contained in:
@@ -28,7 +28,7 @@ export default {
|
||||
},
|
||||
}),
|
||||
// an initial config is only applied if the database is empty
|
||||
initialConfig: {
|
||||
config: {
|
||||
data: schema.toJSON(),
|
||||
// we're enabling auth ...
|
||||
auth: {
|
||||
|
||||
@@ -8,7 +8,7 @@ const config: BunBkndConfig = {
|
||||
connection: {
|
||||
url: "file:data.db",
|
||||
},
|
||||
initialConfig: {
|
||||
config: {
|
||||
media: {
|
||||
enabled: true,
|
||||
adapter: {
|
||||
|
||||
@@ -33,7 +33,7 @@ export default {
|
||||
},
|
||||
}),
|
||||
// an initial config is only applied if the database is empty
|
||||
initialConfig: {
|
||||
config: {
|
||||
data: schema.toJSON(),
|
||||
// we're enabling auth ...
|
||||
auth: {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { App, boolean, em, entity, text } from "bknd";
|
||||
import { secureRandomString } from "bknd/utils";
|
||||
|
||||
export default serve({
|
||||
initialConfig: {
|
||||
config: {
|
||||
data: em({
|
||||
todos: entity("todos", {
|
||||
title: text(),
|
||||
|
||||
@@ -27,7 +27,7 @@ export default {
|
||||
},
|
||||
}),
|
||||
// an initial config is only applied if the database is empty
|
||||
initialConfig: {
|
||||
config: {
|
||||
data: schema.toJSON(),
|
||||
// we're enabling auth ...
|
||||
auth: {
|
||||
|
||||
@@ -25,7 +25,7 @@ export default {
|
||||
url: process.env.DB_URL ?? "file:data.db",
|
||||
},
|
||||
// an initial config is only applied if the database is empty
|
||||
initialConfig: {
|
||||
config: {
|
||||
data: schema.toJSON(),
|
||||
// we're enabling auth ...
|
||||
auth: {
|
||||
|
||||
Reference in New Issue
Block a user