mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 00:16:42 +00:00
feat(ui): Shadow UI redesign, domain management, and DNS autoconfigure (#11119)
Co-authored-by: ShadowArcanist <162910371+ShadowArcanist@users.noreply.github.com>
This commit is contained in:
1 parent
0b843bb07c
commit
8ae56587d5
497 files changed
+44045
-22630
No files matched your search
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
it('returns zero for null or empty fqdn', function () {
|
||||
expect(countDomains(null))->toBe(0)
|
||||
->and(countDomains(''))->toBe(0)
|
||||
->and(countDomains(' '))->toBe(0);
|
||||
});
|
||||
|
||||
it('counts a single domain', function () {
|
||||
expect(countDomains('https://app.coolify.io'))->toBe(1)
|
||||
->and(countDomains(' https://app.coolify.io '))->toBe(1);
|
||||
});
|
||||
|
||||
it('counts multiple comma-separated domains', function () {
|
||||
expect(countDomains('https://app.coolify.io,https://cloud.coolify.io/dashboard'))->toBe(2)
|
||||
->and(countDomains('https://a.com, https://b.com , https://c.com'))->toBe(3);
|
||||
});
|
||||
|
||||
it('ignores empty segments between commas', function () {
|
||||
expect(countDomains('https://a.com,,https://b.com,'))->toBe(2)
|
||||
->and(countDomains(',,,'))->toBe(0);
|
||||
});
|
||||
Reference in new issue
Block a user