|
|
|
@@ -30,6 +30,11 @@ describe('A new Mustache.Context', function () { |
|
|
|
assert.equal(context.view.name, 'child'); |
|
|
|
assert.equal(context.parent.view.name, 'parent'); |
|
|
|
}); |
|
|
|
|
|
|
|
it('arjun-new. ---returns the child context', function () { |
|
|
|
assert.equal(context.view.name, 'child'); |
|
|
|
assert.equal(context.parent.view.name, 'parent'); |
|
|
|
}); |
|
|
|
|
|
|
|
it('is able to lookup properties of its own view', function () { |
|
|
|
assert.equal(context.lookup('name'), 'child'); |
|
|
|
|