Skip to content

Commit

Permalink
🧪 chore: fix missing config in terms tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rezk2ll committed Jan 31, 2025
1 parent d7078bb commit 7e73d90
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@
},
"template_dir": "./templates",
"userdb_engine": "sqlite",
"userdb_host": "./src/__testData__/terms.db"
"userdb_host": "./src/__testData__/terms.db",
"sms_api_key": "test_key",
"sms_api_login": "test_secret",
"sms_api_url": "http://localhost/sms/api"
}
5 changes: 4 additions & 1 deletion packages/matrix-identity-server/src/terms.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ beforeAll((done) => {
...defaultConfig,
database_engine: 'sqlite',
base_url: 'http://example.com/',
userdb_engine: 'sqlite'
userdb_engine: 'sqlite',
sms_api_key: 'test_key',
sms_api_login: 'test_secret',
sms_api_url: 'http://localhost/sms/api'
}
buildUserDB(conf)
.then(() => {
Expand Down

0 comments on commit 7e73d90

Please sign in to comment.