chore: add audit log tests (#4764)

* added test for stopping a workspace build

* formatted sfriendly string; added tests

* logging unmarshal error in auditLogDescription

* prettier

* got rid of extra workspace word

* PR feedback

* fixed mistake; wrote tests in penance

* fix be
This commit is contained in:
Kira Pilot
2022-10-27 15:57:41 -04:00
committed by GitHub
parent 01ec483ecc
commit 8282e46813
10 changed files with 104 additions and 20 deletions
+2
View File
@@ -688,6 +688,8 @@ func (g *Generator) typescriptType(ty types.Type) (TypescriptType, error) {
return TypescriptType{ValueType: "string", Optional: true}, nil
case "github.com/google/uuid.UUID":
return TypescriptType{ValueType: "string"}, nil
case "encoding/json.RawMessage":
return TypescriptType{ValueType: "Record<string, string>"}, nil
}
// Then see if the type is defined elsewhere. If it is, we can just