mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
test(json): change all test data to json
This commit is contained in:
@@ -6,9 +6,29 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
const author_data = `syntax for the test file
|
||||
te|testing|TestUser|test@test.test|ex
|
||||
ti|testtest|UserName2|testing@user.io;;gr1`
|
||||
const author_data = `
|
||||
{
|
||||
"Authors": {
|
||||
"testing": {
|
||||
"shortname": "te",
|
||||
"longname": "testing",
|
||||
"username": "TestUser",
|
||||
"email": "test@test.test",
|
||||
"ex": true,
|
||||
"groups": []
|
||||
},
|
||||
"testtest": {
|
||||
"shortname": "ti",
|
||||
"longname": "testtest",
|
||||
"username": "UserName2",
|
||||
"email": "testing@user.io",
|
||||
"ex": false,
|
||||
"groups": [
|
||||
"gr1"
|
||||
]
|
||||
}
|
||||
}
|
||||
}`
|
||||
|
||||
var envVar = os.Getenv("author_file")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user