Skip to content

Commit

Permalink
correct indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Cherif BOUCHELAGHEM committed Sep 6, 2016
1 parent 4a0a8ed commit 11a7e5f
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions list/list-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,24 +625,24 @@ QUnit.test("extending DefineList constructor functions - value (#61)", function(
});

QUnit.test("'*' inheritance works (#61)", function(){
var Account = DefineMap.extend({
name: "string",
amount: "number",
slug: {
serialize: true,
get: function(){
return this.name.toLowerCase().replace(/ /g,'-').replace(/[^\w-]+/g,'');
}
}
});
var Account = DefineMap.extend({
name: "string",
amount: "number",
slug: {
serialize: true,
get: function(){
return this.name.toLowerCase().replace(/ /g,'-').replace(/[^\w-]+/g,'');
}
}
});

var BaseList = DefineList.extend({
"*": Account
});
var BaseList = DefineList.extend({
"*": Account
});

var ExtendedList = BaseList.extend({});
var ExtendedList = BaseList.extend({});

var xl = new ExtendedList([{}]);
var xl = new ExtendedList([{}]);

QUnit.ok(xl[0] instanceof Account);
QUnit.ok(xl[0] instanceof Account);
});

0 comments on commit 11a7e5f

Please sign in to comment.