Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(() => {
Postal.reset();
listener.clear();
Postal.subscribe({
channel : "editor",
topic : "*",
callback : function(data, envelope) {
data.topic = envelope.topic;
listener.append(data);
}
});
Postal.subscribe({
channel : "engine-request",
topic : "*",
callback : function(data, envelope) {
data.topic = envelope.topic;
constructor(){
Postal.reset();
this.store = createStore(Reducer);
this.store.dispatch(initialization);
this.div = document.createElement('div');
document.documentElement.appendChild(this.div);
this.engineMessages = new Listener('engine-request');
this.editorMessages = new Listener('editor');
this.explorerMessages = new Listener('explorer');
var SpecEditorPresenter = require('./../lib/presentation/spec-editor-presenter');
SpecEditorPresenter(this.store, this.engineRequests);
global.$ = $;