Commit 2e923262 authored by Robert Knight's avatar Robert Knight

Rename a test parameter to better match test description

parent df7115e8
...@@ -605,14 +605,14 @@ describe('FrameSyncService', () => { ...@@ -605,14 +605,14 @@ describe('FrameSyncService', () => {
assert.calledWith(channel.call, 'setHighlightsVisible', false); assert.calledWith(channel.call, 'setHighlightsVisible', false);
}); });
[true, false].forEach(haveContentInfo => { [true, false].forEach(contentInfoAvailable => {
it('sends content info to guest if available', async () => { it('sends content info to guest if available', async () => {
let channel; let channel;
setupPortRPC = rpc => { setupPortRPC = rpc => {
channel = rpc; channel = rpc;
}; };
const contentInfo = { item: { title: 'Some article' } }; const contentInfo = { item: { title: 'Some article' } };
if (haveContentInfo) { if (contentInfoAvailable) {
fakeStore.setContentInfo(contentInfo); fakeStore.setContentInfo(contentInfo);
} }
...@@ -624,7 +624,7 @@ describe('FrameSyncService', () => { ...@@ -624,7 +624,7 @@ describe('FrameSyncService', () => {
assert.equal( assert.equal(
channel.call.calledWith('showContentInfo', contentInfo), channel.call.calledWith('showContentInfo', contentInfo),
haveContentInfo contentInfoAvailable
); );
}); });
}); });
......
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