January 2016
Intermediate to advanced
278 pages
4h 53m
English
The subapplication façade's responsibility is to create the model or collect objects and create the appropriate subapplication controller to render the fetched data. To show the contact editor, the Façade should fetch the contact by its ID and then run the ContactEditor subapplication:
var proxyquery = require('proxyquireify')(require); var FakeApp = require('../../fakes/app'); var FakeRegion = require('../../fakes/region'); var FakeContactEditor = require('../../fakes/contactEditor'); var fakes = { '../../app': FakeApp, './contactEditor': FakeContactEditor, './contactList': {}, './contactViewer': {} }; var ContactsApp = proxyquery('../../../app/js/apps/contacts/app', fakes); describe('Contacts application facade', ...Read now
Unlock full access