Phase 3 - nostr integration complete
This commit is contained in:
@@ -14,6 +14,7 @@ void main() {
|
||||
expect(config.enableLogging, isTrue);
|
||||
expect(config.immichBaseUrl, isNotEmpty);
|
||||
expect(config.immichApiKey, isNotEmpty);
|
||||
expect(config.nostrRelays, isNotEmpty);
|
||||
});
|
||||
|
||||
/// Tests that loading 'prod' environment returns the correct configuration.
|
||||
@@ -26,6 +27,7 @@ void main() {
|
||||
expect(config.enableLogging, isFalse);
|
||||
expect(config.immichBaseUrl, isNotEmpty);
|
||||
expect(config.immichApiKey, isNotEmpty);
|
||||
expect(config.nostrRelays, isNotEmpty);
|
||||
});
|
||||
|
||||
/// Tests that loading configuration is case-insensitive.
|
||||
@@ -38,9 +40,11 @@ void main() {
|
||||
expect(devConfig.apiBaseUrl, isNotEmpty);
|
||||
expect(devConfig.enableLogging, isTrue);
|
||||
expect(devConfig.immichBaseUrl, isNotEmpty);
|
||||
expect(devConfig.nostrRelays, isNotEmpty);
|
||||
expect(prodConfig.apiBaseUrl, isNotEmpty);
|
||||
expect(prodConfig.enableLogging, isFalse);
|
||||
expect(prodConfig.immichBaseUrl, isNotEmpty);
|
||||
expect(prodConfig.nostrRelays, isNotEmpty);
|
||||
// Verify dev and prod configs are different
|
||||
expect(devConfig.apiBaseUrl, isNot(equals(prodConfig.apiBaseUrl)));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user