This commit is contained in:
Drew Gross
2016-03-02 20:51:35 -08:00
parent df4022060e
commit befcd453a4

View File

@@ -1763,5 +1763,22 @@ describe('Parse.User testing', () => {
}); });
}); });
it("session expiresAt correct format", (done) => {
Parse.User.signUp("asdf", "zxcv", null, {
success: function(user) {
request.get({
url: 'http://localhost:8378/1/classes/_Session',
json: true,
headers: {
'X-Parse-Application-Id': 'test',
'X-Parse-Master-Key': 'test',
},
}, (error, response, body) => {
expect(body.results[0].expiresAt.__type).toEqual('Date');
done();
})
}
});
});
}); });