Closed garemoko closed 9 years ago
The method changes here should be applied to all of the document methods to keep them consistent. Can you add them for those? And tests?
Added the registration change to getState and deleteState, added the optional POST for the activity and agent profile APIs and added tests of POST to all the document APIs.
Did a build (not committed) and ran tests successfully.
I didn't include a test for null registration for get/set/delete state - do we need that?
Note, sync tests only run in a browser environment not node. They are passing in Chrome. We'll do a full browser test when we cut the release. Eventually it'd be nice to have the same tests in the async file, but don't want to require that here because they were already mismatched.
So I'm :+1: @bscSCORM.
Allow the AP to explicitly store a state document with no registration by passing a registration of null in the configuration.
Allow the AP to specify it wants to use POST instead of PUT for application/json.
Supersedes https://github.com/RusticiSoftware/TinCanJS/pull/93