mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
throw an error if a domain name is declared more than once (#247)
* throw an error if a domain name is declared more than once in the js file
This commit is contained in:
committed by
Tom Limoncelli
parent
2ef1fc42f8
commit
106790b0d5
@@ -77,6 +77,7 @@ func TestErrors(t *testing.T) {
|
||||
{"CF_REDIRECT With comma", `D("foo.com","reg",CF_REDIRECT("foo.com,","baaa"))`},
|
||||
{"CF_TEMP_REDIRECT With comma", `D("foo.com","reg",CF_TEMP_REDIRECT("foo.com","baa,a"))`},
|
||||
{"Bad cidr", `D(reverse("foo.com"), "reg")`},
|
||||
{"Dup domains", `D("example.org", "reg"); D("example.org", "reg")`},
|
||||
}
|
||||
for _, tst := range tests {
|
||||
t.Run(tst.desc, func(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user