From 93219a21f2a7f2c06ae1c0446f540c5e3eaf9dc0 Mon Sep 17 00:00:00 2001 From: steven-supersolid Date: Tue, 9 Feb 2016 22:46:47 +0000 Subject: [PATCH] Add non-breaking test --- spec/RestCreate.spec.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/spec/RestCreate.spec.js b/spec/RestCreate.spec.js index 24455507..a8b7991e 100644 --- a/spec/RestCreate.spec.js +++ b/spec/RestCreate.spec.js @@ -57,6 +57,23 @@ describe('rest create', () => { }); }); + it('handles anonymous user signup', (done) => { + var data = { + authData: { + anonymous: { + id: '00000000-0000-0000-0000-000000000000' + } + } + }; + rest.create(config, auth.nobody(config), '_User', data) + .then((r) => { + expect(typeof r.response.objectId).toEqual('string'); + expect(typeof r.response.createdAt).toEqual('string'); + expect(typeof r.response.sessionToken).toEqual('string'); + done(); + }); + }); + it('test facebook signup and login', (done) => { var data = { authData: {