Skip to content

Commit

Permalink
also revert the unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
fredkingham committed Nov 9, 2017
1 parent 75f581a commit dee27ff
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions opal/static/js/test/item.service.test.js
Expand Up @@ -199,27 +199,6 @@ recently changed it - refresh the page and try again';
$httpBackend.flush();
expect(episode.addItem).toHaveBeenCalled();
});

it('should allow us to change the episode on the item', function(){
// allow us to change the episode on the item and everything
// to work as we'd expect
var episodeData = opalTestHelper.getEpisodeData()
episodeData.id = 124;
var newEpisode = opalTestHelper.newEpisode(
$rootScope, episodeData
);
spyOn(newEpisode, "addItem");
item.episode = newEpisode;
item.save({condition: 'Ebola', provisional: false});
var expected = {
"condition":"Ebola",
"provisional":false,
"episode_id":124
}
$httpBackend.expectPOST('/api/v0.1/diagnosis/', expected);
$httpBackend.flush();
expect(newEpisode.addItem).toHaveBeenCalled();
});
});

describe('deleting item', function() {
Expand Down

0 comments on commit dee27ff

Please sign in to comment.