Move modules from Marionette to AMD modules, fix tests

This commit is contained in:
Tautvidas Sipavičius
2015-09-09 14:05:34 +03:00
parent a25a8f2560
commit 8ac9799df6
42 changed files with 3573 additions and 3534 deletions

View File

@@ -1,7 +1,7 @@
define([
'newsletter_editor/App',
'newsletter_editor/components/heading'
], function(EditorApplication) {
], function(EditorApplication, HeadingComponent) {
describe('Heading', function() {
describe('view', function() {
@@ -10,7 +10,7 @@ define([
var model = new Backbone.SuperModel({
newsletter_subject: 'a test subject',
});
view = new (EditorApplication.module("components.heading").HeadingView)({
view = new (HeadingComponent.HeadingView)({
model: model,
});
});
@@ -26,7 +26,7 @@ define([
newsletter_subject: 'a test subject',
newsletter_preheader: 'a test preheader',
});
view = new (EditorApplication.module("components.heading").HeadingView)({
view = new (HeadingComponent.HeadingView)({
model: model,
});
view.render();