Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesjwarren committed Mar 24, 2015
1 parent d1bd4ee commit b6ade14
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/unit/thisissoon-core/controllers/ProjectCtrl.js
Expand Up @@ -34,9 +34,9 @@ describe("ProjectCtrl", function (){

_projects = {
list: [
{ id: 1 },
{ id: 3 },
{ id: 5 }
{ id: 1, slug: "project-1" },
{ id: 3, slug: "project-2" },
{ id: 5, slug: "project-3" }
]
};

Expand All @@ -57,8 +57,8 @@ describe("ProjectCtrl", function (){

it("should set next and previous projects based on current project", function (){
scope.setNextPrevious();
expect(scope.next).toEqual(5);
expect(scope.previous).toEqual(1);
expect(scope.next).toEqual("project-3");
expect(scope.previous).toEqual("project-1");
});

it("should get background colour from cache", function (){
Expand Down

0 comments on commit b6ade14

Please sign in to comment.