Skip to content

Commit 93219a2

Browse files
Add non-breaking test
1 parent e7e9a53 commit 93219a2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

spec/RestCreate.spec.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,23 @@ describe('rest create', () => {
5757
});
5858
});
5959

60+
it('handles anonymous user signup', (done) => {
61+
var data = {
62+
authData: {
63+
anonymous: {
64+
id: '00000000-0000-0000-0000-000000000000'
65+
}
66+
}
67+
};
68+
rest.create(config, auth.nobody(config), '_User', data)
69+
.then((r) => {
70+
expect(typeof r.response.objectId).toEqual('string');
71+
expect(typeof r.response.createdAt).toEqual('string');
72+
expect(typeof r.response.sessionToken).toEqual('string');
73+
done();
74+
});
75+
});
76+
6077
it('test facebook signup and login', (done) => {
6178
var data = {
6279
authData: {

0 commit comments

Comments
 (0)