Przeglądaj źródła

Update context-test.js

pull/799/head
Himanshi Gupta GitHub 3 lat temu
rodzic
commit
46a8380786
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 11 dodań i 0 usunięć
  1. +11
    -0
      test/context-test.js

+ 11
- 0
test/context-test.js Wyświetl plik

@@ -24,6 +24,12 @@ describe('A new Mustache.Context', function () {
assert.equal(context.view.name, 'child');
assert.equal(context.parent.view.name, 'parent');
});
it('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');
@@ -40,6 +46,11 @@ describe('A new Mustache.Context', function () {
it('is able to lookup nested properties of its parent view', function () {
assert.equal(context.lookup('a.b'), 'b');
});
it('new. is able to lookup nested properties of its parent view', function () {
assert.equal(context.lookup('a.b'), 'b');
});
});
});



Ładowanie…
Anuluj
Zapisz