Skip to content

Commit

Permalink
Fixed the unit tests after change of field edit view configuration name
Browse files Browse the repository at this point in the history
  • Loading branch information
dpobel committed Feb 24, 2015
1 parent ba9aa0b commit 5097104
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Tests/js/views/assets/ez-contenteditformview-tests.js
Expand Up @@ -29,7 +29,7 @@ YUI.add('ez-contenteditformview-tests', function (Y) {
this.content = new Y.Mock();
this.version = new Y.Mock();
this.config = {
editViews: {
fieldEditViews: {
test1: 'hello'
}
};
Expand Down Expand Up @@ -182,7 +182,7 @@ YUI.add('ez-contenteditformview-tests', function (Y) {
content: this.content,
version: this.version,
config: {
editViews: {
fieldEditViews: {
test1: 'hello'
}
}
Expand All @@ -191,10 +191,10 @@ YUI.add('ez-contenteditformview-tests', function (Y) {
this.view.set('active', true);

Y.Array.each(this.fieldDefinitions, function (def) {
if (that.view.get('config').editViews[def.fieldType]){
if (that.view.get('config').fieldEditViews[def.fieldType]){
Y.Assert.areSame(
that.config[def.fieldType],
that.view.get('config').editViews[def.fieldType],
that.view.get('config').fieldEditViews[def.fieldType],
"The config should be passed to the fieldView if fieldType match"
);
} else {
Expand All @@ -213,7 +213,7 @@ YUI.add('ez-contenteditformview-tests', function (Y) {
this.contentType = new Y.Mock();
this.version = new Y.Mock();
this.config = {
editViews: {
fieldEditViews: {
something: 'hello'
}
};
Expand Down Expand Up @@ -333,7 +333,7 @@ YUI.add('ez-contenteditformview-tests', function (Y) {
this.contentType = new Y.Mock();
this.version = new Y.Mock();
this.config = {
editViews: {
fieldEditViews: {
something: 'hello'
}
};
Expand Down Expand Up @@ -434,7 +434,7 @@ YUI.add('ez-contenteditformview-tests', function (Y) {
this.contentType = new Y.Mock();
this.version = new Y.Mock();
this.config = {
editViews: {
fieldEditViews: {
something: 'hello'
}
};
Expand Down

0 comments on commit 5097104

Please sign in to comment.