11 lines
286 B
JavaScript
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"});
|
|
});
|
|
});
|
|
});
|