graph2, model: Added Comment type to Change.

This commit is contained in:
2019-01-14 19:58:05 +01:00
parent 39a4fef506
commit 06fbfc90c5
6 changed files with 20 additions and 3 deletions
+2
View File
@@ -22,6 +22,7 @@ func TestMany(t *testing.T) {
},
},
models.Post{ID: "P5"},
models.Comment{ID: "SCC1234"},
}
expectations := []models.ChangeKey{
@@ -33,6 +34,7 @@ func TestMany(t *testing.T) {
{Model: "Character", ID: "C17"},
{Model: "Channel", ID: "#Stuff"},
{Model: "Post", ID: "P5"},
{Model: "Comment", ID: "SCC1234"},
}
results := changekeys.Many(data...)
+5
View File
@@ -28,6 +28,11 @@ func TestOne(t *testing.T) {
models.Log{ID: "2018-10-23_210303325_RedrockAgency", ShortID: "L807"},
models.ChangeKey{Model: "Log", ID: "2018-10-23_210303325_RedrockAgency"},
},
{
"Comment_SCC1234",
models.Comment{ID: "SCC1234"},
models.ChangeKey{Model: "Comment", ID: "SCC1234"},
},
}
for _, row := range table {