Переглянути джерело

Update context-test.js

pull/799/head
Arjun Rathi GitHub 3 роки тому
джерело
коміт
716a1a4668
Не вдалося знайти GPG ключ що відповідає даному підпису Ідентифікатор GPG ключа: 4AEE18F83AFDEB23
1 змінених файлів з 5 додано та 0 видалено
  1. +5
    -0
      test/context-test.js

+ 5
- 0
test/context-test.js Переглянути файл

@@ -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');


Завантаження…
Відмінити
Зберегти