Facebook removed the API and facebook integration is broken now, so lets remove it. closes #7874
24 lines
790 B
JavaScript
24 lines
790 B
JavaScript
describe("app.models.User", function(){
|
|
beforeEach(function(){
|
|
this.user = new app.models.User({});
|
|
});
|
|
|
|
describe("authenticated", function(){
|
|
it("should be true if ID is nil", function(){
|
|
expect(this.user.authenticated()).toBeFalsy();
|
|
});
|
|
|
|
it('should be true if ID is set', function(){
|
|
this.user.set({id : 1});
|
|
expect(this.user.authenticated()).toBeTruthy();
|
|
});
|
|
});
|
|
|
|
describe("isServiceConnected", function(){
|
|
it("checks to see if the sent provider name is a configured service", function(){
|
|
this.user.set({configured_services: ["twitter"]}); // eslint-disable-line camelcase
|
|
expect(this.user.isServiceConfigured("twitter")).toBeTruthy();
|
|
expect(this.user.isServiceConfigured("tumblr")).toBeFalsy();
|
|
});
|
|
});
|
|
});
|