diaspora/spec/javascripts/app/app-spec.js
2012-01-07 14:23:25 -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"});
});
});
});