Remove the TypeScript runtime code that called the old catalog module's tools; a test finds no file naming one (ADR 0604 section 4, issue 774)
This commit is contained in:
@@ -110,6 +110,13 @@ func TestTheRepositoryHoldsNoCheckScriptAndNodeToolsIsItsOnlyModule(t *testing.T
|
||||
if !d.IsDir() && d.Name() == "module.json" {
|
||||
found = append(found, filepath.ToSlash(p))
|
||||
}
|
||||
// ADR 0604 section 4: the TypeScript that called the old catalog module's tools is gone, and nothing
|
||||
// under node-tools names one (the needle is built so this file does not name it either).
|
||||
if !d.IsDir() && strings.Contains(filepath.ToSlash(p), "/node-tools/") {
|
||||
if body, rerr := os.ReadFile(p); rerr == nil && strings.Contains(string(body), "catalog"+"_modules") {
|
||||
t.Errorf("%s names a catalog tool of the retired module", p)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user