diaspora/spec/javascripts/app-spec.js
2012-01-07 14:23:21 -08:00

11 lines
286 B
JavaScript

describe("App", function() {
describe("user", function() {
it("sets the user if given one and returns the current user", function() {
expect(App.user()).toBeUndefined();
App.user({name: "alice"});
expect(App.user()).toEqual({name: "alice"});
});
});
});