16 lines
433 B
Go
16 lines
433 B
Go
package addons
|
|
|
|
import "testing"
|
|
|
|
func TestKnownDemoBuildIsIncompatible(t *testing.T) {
|
|
if CompatibilityIssue("soundcraft", "v0.11.0-ca335c74d511") != "demoOnly" {
|
|
t.Fatal("demo must not be offered as a server editor")
|
|
}
|
|
if CompatibilityIssue("wordcraft", "v0.11.0-ca335c74d511") != "" {
|
|
t.Fatal("unrelated editor blocked")
|
|
}
|
|
if CompatibilityIssue("soundcraft", "test-123") != "" {
|
|
t.Fatal("unrelated build blocked")
|
|
}
|
|
}
|