Sfoglia il codice sorgente

Merge pull request #1 from arjun-rathi/patch-1

Update context-test.js
pull/799/head
Himanshi Gupta GitHub 3 anni fa
parent
commit
4840a76297
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. +5
    -0
      test/context-test.js

+ 5
- 0
test/context-test.js Vedi File

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


Loading…
Annulla
Salva