Skip to content

Commit

Permalink
add test for cache watch expression in HeaderCtrl
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesjwarren committed Feb 13, 2015
1 parent 4b97053 commit 47fa5e0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/unit/thisissoon-core/controllers/HeaderCtrl.js
Expand Up @@ -70,4 +70,11 @@ describe("HeaderCtrl", function (){
expect(scope.navStyle).toEqual("dark");
});

it("should watch project value in cache", function (){
_cache.put("project", { backgroundColor: "#FFFFFF" });
scope.$digest();

expect(scope.navStyle).toEqual("dark");
});

});

0 comments on commit 47fa5e0

Please sign in to comment.