diff options
author | Florian Dold <florian@dold.me> | 2021-01-05 17:59:50 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-01-05 17:59:50 +0100 |
commit | c032931f22e4d1b44e2a3af52c705db147129024 (patch) | |
tree | 49da75982f72796724b6f03e8e513d85f0c11466 /packages/taler-wallet-core/src/util | |
parent | 981ef46267e0b1768b455307ab783874c3006262 (diff) | |
download | wallet-core-c032931f22e4d1b44e2a3af52c705db147129024.tar.gz wallet-core-c032931f22e4d1b44e2a3af52c705db147129024.tar.bz2 wallet-core-c032931f22e4d1b44e2a3af52c705db147129024.zip |
get basic test cases to work with new exchange
Diffstat (limited to 'packages/taler-wallet-core/src/util')
-rw-r--r-- | packages/taler-wallet-core/src/util/talerconfig.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/util/talerconfig.ts b/packages/taler-wallet-core/src/util/talerconfig.ts index d121601c5..fa8c2d40f 100644 --- a/packages/taler-wallet-core/src/util/talerconfig.ts +++ b/packages/taler-wallet-core/src/util/talerconfig.ts @@ -213,6 +213,13 @@ export class Configuration { sec[option.toUpperCase()] = value; } + /** + * Get lower-cased section names. + */ + getSectionNames(): string[] { + return Object.keys(this.sectionMap).map((x) => x.toLowerCase()); + } + getString(section: string, option: string): ConfigValue<string> { const secNorm = section.toUpperCase(); const optNorm = option.toUpperCase(); |