Posting to a configuration sets it so that you can get it again.
(t *testing.T)
| 112 | |
| 113 | // Posting to a configuration sets it so that you can get it again. |
| 114 | func Test_PostConfig_UpdatesConfig(t *testing.T) { |
| 115 | setup(t) |
| 116 | defer cleanup(t) |
| 117 | |
| 118 | userID := makeUserID() |
| 119 | for _, c := range allClients { |
| 120 | view1 := c.post(t, userID, makeConfig()) |
| 121 | config2 := makeConfig() |
| 122 | view2 := c.post(t, userID, config2) |
| 123 | assert.True(t, view2.ID > view1.ID, "%v > %v", view2.ID, view1.ID) |
| 124 | assert.Equal(t, config2, view2.Config) |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | // Different users can have different configurations. |
| 129 | func Test_PostConfig_MultipleUsers(t *testing.T) { |
nothing calls this directly
no test coverage detected