]> git.cworth.org Git - lmno-server/commit
tictactoe: Track API change for the /move request: "square" -> "move"
authorCarl Worth <cworth@cworth.org>
Mon, 1 Jun 2020 18:33:36 +0000 (11:33 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 1 Jun 2020 18:33:36 +0000 (11:33 -0700)
commit9e5bf65868eaafcb11d09c0fee02e0d3d7c2121f
treedfcd492b18c8192bd3236e8b3f68160f32ef5edf
parent63492ece678da23ef0e9652b86313e6c824376af
tictactoe: Track API change for the /move request: "square" -> "move"

The API was recently changed to be more generic. We track that here by
looking for a .move property in the body object, instead of .square.

And we conform to that by sending events with data named "move" nota
"square" in the corresponding test cases.
test
tictactoe.js