Make MessageQueue.RemoteModules lazy

Reviewed By: javache

Differential Revision: D3252400

fb-gh-sync-id: 11a31fd2e1e41c6a3ad538b08ef177207780bd88
fbshipit-source-id: 11a31fd2e1e41c6a3ad538b08ef177207780bd88
This commit is contained in:
Alexander Blom
2016-05-06 04:13:30 -07:00
committed by Facebook Github Bot 5
parent deef8aade2
commit 097f59112f
3 changed files with 52 additions and 20 deletions

View File

@@ -32,8 +32,7 @@ describe('MessageQueue', () => {
beforeEach(() => {
queue = new MessageQueue(
remoteModulesConfig,
localModulesConfig
() => ({ remoteModuleConfig: remoteModulesConfig })
);
queue.registerCallableModule('one', TestModule);