Rename Wordpress component to Communication component, fix preview JS

syntax
This commit is contained in:
Tautvidas Sipavičius
2015-12-16 18:06:28 +02:00
parent f02699158f
commit 132e6d3342
10 changed files with 58 additions and 52 deletions

View File

@@ -2,8 +2,8 @@ define([
'newsletter_editor/App',
'newsletter_editor/blocks/automatedLatestContent',
'amd-inject-loader!newsletter_editor/blocks/automatedLatestContent',
'newsletter_editor/components/wordpress',
], function(EditorApplication, AutomatedLatestContentBlock, AutomatedLatestContentInjector, WordpressComponent) {
'newsletter_editor/components/communication',
], function(EditorApplication, AutomatedLatestContentBlock, AutomatedLatestContentInjector, CommunicationComponent) {
describe('Automated latest content', function () {
describe('model', function () {
@@ -11,7 +11,7 @@ define([
before(function() {
module = AutomatedLatestContentInjector({
'newsletter_editor/components/wordpress': {
'newsletter_editor/components/communication': {
getTransformedPosts: function() {
return jQuery.Deferred();
}
@@ -199,7 +199,7 @@ define([
before(function() {
module = AutomatedLatestContentInjector({
'newsletter_editor/components/wordpress': {
'newsletter_editor/components/communication': {
getTransformedPosts: function() {
return jQuery.Deferred();
}
@@ -231,7 +231,7 @@ define([
before(function() {
module = AutomatedLatestContentInjector({
'newsletter_editor/components/wordpress': {
'newsletter_editor/components/communication': {
getTransformedPosts: function() {
return jQuery.Deferred();
},
@@ -243,7 +243,7 @@ define([
});
before(function () {
WordpressComponent.getPostTypes = function() {
CommunicationComponent.getPostTypes = function() {
var deferred = jQuery.Deferred();
deferred.resolve([
{