Commit 050ef2b2 authored by Robert Knight's avatar Robert Knight

Fix test sporadically failing due to failure to return Promise

When this test was converted from CoffeeScript to JS, the implicit
return of the Promise was not converted to an explicit return. Hence the
test would sporadically fail depending on when the Promise callback got
executed.
parent 54519c63
...@@ -122,7 +122,7 @@ describe('StreamContentController', function () { ...@@ -122,7 +122,7 @@ describe('StreamContentController', function () {
createController(); createController();
Promise.resolve().then(function () { return Promise.resolve().then(function () {
assert.calledOnce(fakeAnnotationMapper.loadAnnotations); assert.calledOnce(fakeAnnotationMapper.loadAnnotations);
assert.calledWith(fakeAnnotationMapper.loadAnnotations, assert.calledWith(fakeAnnotationMapper.loadAnnotations,
['annotation_1', 'annotation_2'], ['reply_1', 'reply_2', 'reply_3']); ['annotation_1', 'annotation_2'], ['reply_1', 'reply_2', 'reply_3']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment