[Mobile] Test BrowseTreeController variants

This commit is contained in:
Victor Woeltjen
2015-09-18 15:49:55 -07:00
parent 24586ae378
commit 884d36ad6d
4 changed files with 126 additions and 7 deletions

View File

@ -24,5 +24,20 @@
define(
["../src/BrowseTreeController"],
function (BrowseTreeController) {
'use strict';
describe("The BrowseTreeController", function () {
var controller = new BrowseTreeController();
it("is initially visible", function () {
expect(controller.visible()).toBeTruthy();
});
it("allows visibility to be toggled", function () {
controller.toggle();
expect(controller.visible()).toBeFalsy();
controller.toggle();
expect(controller.visible()).toBeTruthy();
});
});
}
);